Sign in
kunit
/
linux
/
d2fb4fb8ee91c1b8a1dbba6afda6f5ed2eb28bdc
/
.
/
tools
/
testing
/
selftests
/
x86
/
check_cc.sh
blob: 172d3293fb7bed8f04802f1b5ccd495ec9782cff [
file
] [
log
] [
blame
]
#!/bin/sh
# check_cc.sh - Helper to test userspace compilation support
# Copyright (c) 2015 Andrew Lutomirski
# GPL v2
CC
=
"$1"
TESTPROG
=
"$2"
shift
2
if
"$CC"
-
o
/
dev
/
null
"$TESTPROG"
-
O0
"$@"
2
>/
dev
/
null
;
then
echo
1
else
echo
0
fi
exit
0