summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@uclibc-ng.org>2016-10-22 19:03:37 +0200
committerWaldemar Brodkorb <wbx@uclibc-ng.org>2016-10-22 19:03:37 +0200
commita3c78c66667ffaa0487b59e3cc6a5dab5a4e59f2 (patch)
tree992d05319aee246452ff222537d42cccdf8a1814
parent8d2f169a82bec9b8c143e33e447b64e7b555e66a (diff)
test: add a simple check, that -std=c99 working
-rw-r--r--test/pthread/Makefile.in2
-rw-r--r--test/pthread/tst-c99.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/test/pthread/Makefile.in b/test/pthread/Makefile.in
index c50748d69..bd6b29b0c 100644
--- a/test/pthread/Makefile.in
+++ b/test/pthread/Makefile.in
@@ -6,3 +6,5 @@ TESTS_DISABLED += cancellation-points
EXTRA_LDFLAGS := -lpthread
LDFLAGS_cancellation-points := -lrt
+
+CFLAGS_tst-c99 := -std=c99
diff --git a/test/pthread/tst-c99.c b/test/pthread/tst-c99.c
new file mode 100644
index 000000000..3cc91b1b7
--- /dev/null
+++ b/test/pthread/tst-c99.c
@@ -0,0 +1,2 @@
+#include <pthread.h>
+int main(void) { return 0; }