aboutsummaryrefslogtreecommitdiff
path: root/test/OpenMP/option_warn.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/OpenMP/option_warn.c')
-rw-r--r--test/OpenMP/option_warn.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/OpenMP/option_warn.c b/test/OpenMP/option_warn.c
new file mode 100644
index 0000000000..ddec8e113e
--- /dev/null
+++ b/test/OpenMP/option_warn.c
@@ -0,0 +1,5 @@
+// RUN: %clang_cc1 -verify -Wsource-uses-openmp -o - %s
+
+int a;
+#pragma omp threadprivate(a,b) // expected-warning {{unexpected '#pragma omp ...' in program}}
+#pragma omp parallel