diff options
author | Alexey Bataev <a.bataev@hotmail.com> | 2014-06-24 12:55:56 +0000 |
---|---|---|
committer | Alexey Bataev <a.bataev@hotmail.com> | 2014-06-24 12:55:56 +0000 |
commit | 9f4aa8c03413adc6d5946f33c39697c6961680f2 (patch) | |
tree | 6b12709d74899ce060a15e5a0937d3a2067ecb35 /test/OpenMP/for_ast_print.cpp | |
parent | b6cd35729cd0372420dd3fad9adcd1314ea53cf8 (diff) |
[OPENMP] Additional checking for 'collapse' clause.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@211589 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/OpenMP/for_ast_print.cpp')
-rw-r--r-- | test/OpenMP/for_ast_print.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/test/OpenMP/for_ast_print.cpp b/test/OpenMP/for_ast_print.cpp index 838eb4e923..8802237b25 100644 --- a/test/OpenMP/for_ast_print.cpp +++ b/test/OpenMP/for_ast_print.cpp @@ -23,11 +23,17 @@ T tmain(T argc) { #pragma omp for private(argc, b), firstprivate(c, d), lastprivate(d, f) collapse(N) schedule(static, N) ordered nowait for (int i = 0; i < 10; ++i) for (int j = 0; j < 10; ++j) - foo(); + for (int j = 0; j < 10; ++j) + for (int j = 0; j < 10; ++j) + for (int j = 0; j < 10; ++j) + foo(); // CHECK-NEXT: #pragma omp parallel // CHECK-NEXT: #pragma omp for private(argc,b) firstprivate(c,d) lastprivate(d,f) collapse(N) schedule(static, N) ordered nowait // CHECK-NEXT: for (int i = 0; i < 10; ++i) // CHECK-NEXT: for (int j = 0; j < 10; ++j) + // CHECK-NEXT: for (int j = 0; j < 10; ++j) + // CHECK-NEXT: for (int j = 0; j < 10; ++j) + // CHECK-NEXT: for (int j = 0; j < 10; ++j) // CHECK-NEXT: foo(); return T(); } |