repo.or.cz
/
linux
/
fpc-iii.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
WIP FPC-III support
[linux/fpc-iii.git]
/
tools
/
testing
/
selftests
/
x86
/
check_cc.sh
blob
3e2089c8cf54967fdd375ec151a15827e104fc53
1
#!/bin/sh
2
# SPDX-License-Identifier: GPL-2.0-only
3
# check_cc.sh - Helper to test userspace compilation support
4
# Copyright (c) 2015 Andrew Lutomirski
5
6
CC
=
"
$1
"
7
TESTPROG
=
"
$2
"
8
shift
2
9
10
if
"
$CC
"
-o
/
dev
/
null
"
$TESTPROG
"
-O0
"$@"
2
>/
dev
/
null
;
then
11
echo
1
12
else
13
echo
0
14
fi
15
16
exit
0