diff --git a/tests/c++-compiler/stat_h.cpp b/tests/c++-compiler/stat_h.cpp new file mode 100644 index 0000000..2ff298e --- /dev/null +++ b/tests/c++-compiler/stat_h.cpp @@ -0,0 +1,6 @@ +#define _GNU_SOURCE 1 +#include +int main() +{ + return 0; +} diff --git a/tests/c++-compiler/test.sh b/tests/c++-compiler/test.sh index ccb1a2e..fd2dda6 100755 --- a/tests/c++-compiler/test.sh +++ b/tests/c++-compiler/test.sh @@ -23,6 +23,12 @@ compiler_version_cmd() { $cmd } +compiler_check_stat_h() { + cmd="CC stat_h.cpp" + echo $cmd + $cmd +} + compiler_check_stdexcept() { cmd="CC stdexcept.cpp" echo $cmd @@ -59,6 +65,7 @@ for compiler in $compilers; do compiler_version_cmd $compiler 2>>$logfile >>$logfile || error=1 compiler_check_helloworld $compiler 2>>$logfile >>$logfile || error=1 compiler_check_stdexcept $compiler 2>> $logfile >>$logfile || error=1 + compiler_check_stat_H $compiler 2>> $logfile >>$logfile || error=1 if [ $error != 0 ] ; then echo "failed :-(" echo "Error msg:"