From a3c78c66667ffaa0487b59e3cc6a5dab5a4e59f2 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Sat, 22 Oct 2016 19:03:37 +0200 Subject: test: add a simple check, that -std=c99 working --- test/pthread/Makefile.in | 2 ++ test/pthread/tst-c99.c | 2 ++ 2 files changed, 4 insertions(+) create mode 100644 test/pthread/tst-c99.c 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 +int main(void) { return 0; } -- cgit v1.2.3