Browse Source

test: add a simple check, that -std=c99 working

Waldemar Brodkorb 7 years ago
parent
commit
a3c78c6666
2 changed files with 4 additions and 0 deletions
  1. 2 0
      test/pthread/Makefile.in
  2. 2 0
      test/pthread/tst-c99.c

+ 2 - 0
test/pthread/Makefile.in

@@ -6,3 +6,5 @@ TESTS_DISABLED += cancellation-points
 EXTRA_LDFLAGS := -lpthread
 
 LDFLAGS_cancellation-points := -lrt
+
+CFLAGS_tst-c99 := -std=c99

+ 2 - 0
test/pthread/tst-c99.c

@@ -0,0 +1,2 @@
+#include <pthread.h>
+int main(void) { return 0; }