diff options
Diffstat (limited to 'clang/test/OpenMP/for_codegen.cpp')
-rw-r--r-- | clang/test/OpenMP/for_codegen.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/clang/test/OpenMP/for_codegen.cpp b/clang/test/OpenMP/for_codegen.cpp index badc5bdeca0..3193d84b6a1 100644 --- a/clang/test/OpenMP/for_codegen.cpp +++ b/clang/test/OpenMP/for_codegen.cpp @@ -146,5 +146,13 @@ void static_chunked(float *a, float *b, float *c, float *d) { // CHECK: ret void } +void parallel_for(float *a) { +#pragma omp parallel +#pragma omp for schedule(static, 5) + // CHECK-NOT: __kmpc_global_thread_num + for (unsigned i = 131071; i <= 2147483647; i += 127) + a[i] += i; +} + #endif // HEADER |