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 | e2f07d47feb0a34c75a87777fe6f81343b908829 (patch) | |
tree | 0c9095e75931c8403197e6224bfcfecdf485f763 /clang/test/OpenMP/for_ast_print.cpp | |
parent | cf635fad02c1b861708756e34394a050a24e1cc1 (diff) | |
download | bcm5719-llvm-e2f07d47feb0a34c75a87777fe6f81343b908829.tar.gz bcm5719-llvm-e2f07d47feb0a34c75a87777fe6f81343b908829.zip |
[OPENMP] Additional checking for 'collapse' clause.
llvm-svn: 211589
Diffstat (limited to 'clang/test/OpenMP/for_ast_print.cpp')
-rw-r--r-- | clang/test/OpenMP/for_ast_print.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/clang/test/OpenMP/for_ast_print.cpp b/clang/test/OpenMP/for_ast_print.cpp index 838eb4e923a..8802237b257 100644 --- a/clang/test/OpenMP/for_ast_print.cpp +++ b/clang/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(); } |