소스 검색

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

Waldemar Brodkorb 9 년 전
부모
커밋
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; }