diff options
author | Waldemar Brodkorb <wbx@uclibc-ng.org> | 2016-10-22 19:03:37 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@uclibc-ng.org> | 2016-10-22 19:03:37 +0200 |
commit | a3c78c66667ffaa0487b59e3cc6a5dab5a4e59f2 (patch) | |
tree | 992d05319aee246452ff222537d42cccdf8a1814 /test/pthread | |
parent | 8d2f169a82bec9b8c143e33e447b64e7b555e66a (diff) |
test: add a simple check, that -std=c99 working
Diffstat (limited to 'test/pthread')
-rw-r--r-- | test/pthread/Makefile.in | 2 | ||||
-rw-r--r-- | test/pthread/tst-c99.c | 2 |
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; } |