aboutsummaryrefslogtreecommitdiff
path: root/test/Driver/darwin-ld-pthread.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/Driver/darwin-ld-pthread.c')
-rw-r--r--test/Driver/darwin-ld-pthread.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/Driver/darwin-ld-pthread.c b/test/Driver/darwin-ld-pthread.c
new file mode 100644
index 000000000000..b22b68a6e623
--- /dev/null
+++ b/test/Driver/darwin-ld-pthread.c
@@ -0,0 +1,4 @@
+// RUN: %clang -Wunused-command-line-argument -pthread -target x86_64-apple-darwin -### /dev/null -o /dev/null 2>&1 | FileCheck %s
+
+// There is nothing to do at link time to get pthread support. But do not warn.
+// CHECK-NOT: argument unused during compilation: '-pthread'