summaryrefslogtreecommitdiffstats
path: root/test/OpenMP/single_codegen.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/OpenMP/single_codegen.cpp')
-rw-r--r--test/OpenMP/single_codegen.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/OpenMP/single_codegen.cpp b/test/OpenMP/single_codegen.cpp
index e67af0f508..b98da37591 100644
--- a/test/OpenMP/single_codegen.cpp
+++ b/test/OpenMP/single_codegen.cpp
@@ -43,4 +43,13 @@ int main() {
return a;
}
+// CHECK-LABEL: parallel_single
+void parallel_single(float *a) {
+#pragma omp parallel
+#pragma omp single
+ // CHECK-NOT: __kmpc_global_thread_num
+ for (unsigned i = 131071; i <= 2147483647; i += 127)
+ a[i] += i;
+}
+
#endif