aboutsummaryrefslogtreecommitdiff
path: root/test/OpenMP/openmp_common.c
diff options
context:
space:
mode:
authorAlexey Bataev <a.bataev@hotmail.com>2013-03-22 06:34:35 +0000
committerAlexey Bataev <a.bataev@hotmail.com>2013-03-22 06:34:35 +0000
commitc640058aa7f224a71ce3b1d2601d84e1b57f82d3 (patch)
tree9b76815ba1471c89d54aee2255d56e0d513c8049 /test/OpenMP/openmp_common.c
parent9bb4a0c195eda6e034c467a63b9ada2209a6df3f (diff)
OpenMP threadprivate directive parsing and semantic analysis
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@177705 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/OpenMP/openmp_common.c')
-rw-r--r--test/OpenMP/openmp_common.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/OpenMP/openmp_common.c b/test/OpenMP/openmp_common.c
new file mode 100644
index 0000000000..ca5d89a662
--- /dev/null
+++ b/test/OpenMP/openmp_common.c
@@ -0,0 +1,9 @@
+// RUN: %clang_cc1 -triple x86_64-apple-macos10.7.0 -verify -fopenmp -ferror-limit 100 -o - %s
+
+#pragma omp // expected-error {{expected an OpenMP directive}}
+#pragma omp unknown_directive // expected-error {{expected an OpenMP directive}}
+
+void foo() {
+#pragma omp // expected-error {{expected an OpenMP directive}}
+#pragma omp unknown_directive // expected-error {{expected an OpenMP directive}}
+}