aboutsummaryrefslogtreecommitdiff
path: root/test/Driver/netbsd.c
diff options
context:
space:
mode:
authorJoerg Sonnenberger <joerg@bec.de>2017-01-16 14:07:24 +0000
committerJoerg Sonnenberger <joerg@bec.de>2017-01-16 14:07:24 +0000
commita746878c53839b4b29f6f7d8276774cf0b3faadc (patch)
treee9a87f4776445ff44ac05c0f308467bc95ecb12f /test/Driver/netbsd.c
parent254708e7b8471d7ebf1e9692b118c6b2ddc73a99 (diff)
Ensure that clang -pthread creates the right macro. -D_POSIX_THREADS
seems to have been a C&P error from old GCC specs for OpenBSD. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@292119 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Driver/netbsd.c')
-rw-r--r--test/Driver/netbsd.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/Driver/netbsd.c b/test/Driver/netbsd.c
index 5558a80b98..06b5eadfca 100644
--- a/test/Driver/netbsd.c
+++ b/test/Driver/netbsd.c
@@ -126,6 +126,8 @@
// RUN: %clang -no-canonical-prefixes -target powerpc64--netbsd -static \
// RUN: --sysroot=%S/Inputs/basic_netbsd_tree %s -### 2>&1 \
// RUN: | FileCheck -check-prefix=S-POWERPC64 %s
+// RUN: %clang -target x86_64--netbsd -pthread -dM -E %s \
+// RUN: | FileCheck -check-prefix=PTHREAD %s
// STATIC: ld{{.*}}" "--eh-frame-hdr"
// STATIC-NOT: "-pie"
@@ -427,3 +429,7 @@
// S-POWERPC64: "{{.*}}/usr/lib{{/|\\\\}}crti.o"
// S-POWERPC64: "{{.*}}/usr/lib{{/|\\\\}}crtbegin.o" "{{.*}}.o" "-lc"
// S-POWERPC64: "{{.*}}/usr/lib{{/|\\\\}}crtend.o" "{{.*}}/usr/lib{{/|\\\\}}crtn.o"
+
+// PTHREAD-NOT: _POSIX_THREADS
+// PTHREAD: _REENTRANT
+// PTHREAD-NOT: _POSIX_THREADS