We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 76df97f commit fdae274Copy full SHA for fdae274
selfcheck.sh
@@ -3,4 +3,13 @@
3
output=$(./simplecpp simplecpp.cpp -e 2>&1)
4
ec=$?
5
echo "$output" | grep -v 'Header not found: <'
6
-exit $ec
+exit $ec
7
+
8
+gcc_ver=$(gcc -dumpversion)
9
+./simplecpp simplecpp.cpp -e -f -D__GNUC__ -D__STDC__ -D__STDC_HOSTED__ -D__CHAR_BIT__=8 -I"/usr/include" -I"/usr/include/linux" -I"/usr/include/c++/$gcc_ver" -I"/usr/include/c++/$gcc_ver/x86_64-pc-linux-gnu" -I"/usr/lib64/gcc/x86_64-pc-linux-gnu/$gcc_ver/include"
10
11
+if [ -d "/usr/include/c++/v1" ]; then
12
+ #clang_ver=$(clang -dumpversion)
13
+ #clang_ver=${clang_ver%%.*}
14
+ ./simplecpp simplecpp.cpp -e -f -D__BYTE_ORDER__ -I"/usr/include/c++/v1"
15
+fi
0 commit comments