summaryrefslogtreecommitdiff
path: root/test/OpenMP/target_parallel_is_device_ptr_messages.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/OpenMP/target_parallel_is_device_ptr_messages.cpp')
-rw-r--r--test/OpenMP/target_parallel_is_device_ptr_messages.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/OpenMP/target_parallel_is_device_ptr_messages.cpp b/test/OpenMP/target_parallel_is_device_ptr_messages.cpp
index d9c3ee907b..b46fd713ff 100644
--- a/test/OpenMP/target_parallel_is_device_ptr_messages.cpp
+++ b/test/OpenMP/target_parallel_is_device_ptr_messages.cpp
@@ -1,4 +1,6 @@
// RUN: %clang_cc1 -std=c++11 -verify -fopenmp -ferror-limit 200 %s
+
+// RUN: %clang_cc1 -std=c++11 -verify -fopenmp-simd -ferror-limit 200 %s
struct ST {
int *a;
};
@@ -38,7 +40,7 @@ struct SA {
#pragma omp target parallel is_device_ptr(aa) // OK
{}
#pragma omp target parallel is_device_ptr(raa) // OK
- {}
+ {}
#pragma omp target parallel is_device_ptr(e) // expected-error{{expected pointer, array, reference to pointer, or reference to array in 'is_device_ptr clause'}}
{}
#pragma omp target parallel is_device_ptr(g) // OK