浏览代码

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

Waldemar Brodkorb 7 年之前
父节点
当前提交
a3c78c6666
共有 2 个文件被更改,包括 4 次插入0 次删除
  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; }