summaryrefslogtreecommitdiff
path: root/test/OpenMP/cancellation_point_messages.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/OpenMP/cancellation_point_messages.cpp')
-rw-r--r--test/OpenMP/cancellation_point_messages.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/OpenMP/cancellation_point_messages.cpp b/test/OpenMP/cancellation_point_messages.cpp
index 21b0e9c2fa2db..8bf5b3d55fdd4 100644
--- a/test/OpenMP/cancellation_point_messages.cpp
+++ b/test/OpenMP/cancellation_point_messages.cpp
@@ -1,5 +1,7 @@
// RUN: %clang_cc1 -verify -fopenmp -ferror-limit 100 %s
+// RUN: %clang_cc1 -verify -fopenmp-simd -ferror-limit 100 %s
+
int main(int argc, char **argv) {
#pragma omp cancellation // expected-error {{expected an OpenMP directive}}
#pragma omp cancellation point // expected-error {{one of 'for', 'parallel', 'sections' or 'taskgroup' is expected}}