diff options
Diffstat (limited to 'test/OpenMP/driver.c')
-rw-r--r-- | test/OpenMP/driver.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/OpenMP/driver.c b/test/OpenMP/driver.c new file mode 100644 index 000000000000..f84541bef8ba --- /dev/null +++ b/test/OpenMP/driver.c @@ -0,0 +1,10 @@ +// Test that by default -fnoopenmp-use-tls is passed to frontend. +// +// RUN: %clang %s -### -o %t.o 2>&1 -fopenmp=libomp | FileCheck --check-prefix=CHECK-DEFAULT %s +// CHECK-DEFAULT: -cc1 +// CHECK-DEFAULT-NOT: -fnoopenmp-use-tls +// +// RUN: %clang %s -### -o %t.o 2>&1 -fopenmp=libomp -fnoopenmp-use-tls | FileCheck --check-prefix=CHECK-NO-TLS %s +// CHECK-NO-TLS: -cc1 +// CHECK-NO-TLS-SAME: -fnoopenmp-use-tls +// |