teak-llvm/clang/test/Driver/darwin-ld-pthread.c
Matthias Braun 9e838bd142 Driver: Do not warn about unused -pthread when linking on darwin
While there is nothing to do at link time to get pthreads support on
darwin, specifying the argument is fine and we should not warn about
unused arguments.

llvm-svn: 294065
2017-02-03 23:09:31 +00:00

5 lines
273 B
C

// 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'