From 240156d89533994d1b2d8027fe9a017ebbb6a20e Mon Sep 17 00:00:00 2001 From: Christoph Niethammer Date: Wed, 27 Jan 2021 10:06:41 +0000 Subject: [PATCH] Add c++ compiler test for stat.h --- tests/c++-compiler/stat_h.cpp | 6 ++++++ tests/c++-compiler/test.sh | 7 +++++++ 2 files changed, 13 insertions(+) create mode 100644 tests/c++-compiler/stat_h.cpp 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:"