diff options
author | Alexey Bataev <a.bataev@hotmail.com> | 2016-02-02 04:59:52 +0000 |
---|---|---|
committer | Alexey Bataev <a.bataev@hotmail.com> | 2016-02-02 04:59:52 +0000 |
commit | 1f092213c1a0c3019d3860c81518605a28818d8b (patch) | |
tree | f6c0c2247c7705bfb201a1fc614a1a3d5cd2bc30 /clang/test/OpenMP/nesting_of_regions.cpp | |
parent | 3d58f26929fa1c45bfeeba5230a83cf366f9d010 (diff) | |
download | bcm5719-llvm-1f092213c1a0c3019d3860c81518605a28818d8b.tar.gz bcm5719-llvm-1f092213c1a0c3019d3860c81518605a28818d8b.zip |
[OPENMP 4.0] Allow to use 'omp simd' directive inside other simd-regions.
llvm-svn: 259465
Diffstat (limited to 'clang/test/OpenMP/nesting_of_regions.cpp')
-rw-r--r-- | clang/test/OpenMP/nesting_of_regions.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/clang/test/OpenMP/nesting_of_regions.cpp b/clang/test/OpenMP/nesting_of_regions.cpp index 4fa6cac01a6..4cd0b81af65 100644 --- a/clang/test/OpenMP/nesting_of_regions.cpp +++ b/clang/test/OpenMP/nesting_of_regions.cpp @@ -137,7 +137,7 @@ void foo() { } #pragma omp simd for (int i = 0; i < 10; ++i) { -#pragma omp simd // expected-error {{OpenMP constructs may not be nested inside a simd region}} +#pragma omp simd for (int i = 0; i < 10; ++i) ; } @@ -468,7 +468,7 @@ void foo() { } #pragma omp for simd for (int i = 0; i < 10; ++i) { -#pragma omp simd // expected-error {{OpenMP constructs may not be nested inside a simd region}} +#pragma omp simd for (int i = 0; i < 10; ++i) ; } @@ -1730,7 +1730,7 @@ void foo() { } #pragma omp parallel for simd for (int i = 0; i < 10; ++i) { -#pragma omp simd// expected-error {{OpenMP constructs may not be nested inside a simd region}} +#pragma omp simd for (int i = 0; i < 10; ++i) ; } @@ -3504,7 +3504,7 @@ void foo() { } #pragma omp simd for (int i = 0; i < 10; ++i) { -#pragma omp simd // expected-error {{OpenMP constructs may not be nested inside a simd region}} +#pragma omp simd for (int i = 0; i < 10; ++i) ; } @@ -3818,7 +3818,7 @@ void foo() { } #pragma omp for simd for (int i = 0; i < 10; ++i) { -#pragma omp simd // expected-error {{OpenMP constructs may not be nested inside a simd region}} +#pragma omp simd for (int i = 0; i < 10; ++i) ; } @@ -5053,7 +5053,7 @@ void foo() { } #pragma omp parallel for simd for (int i = 0; i < 10; ++i) { -#pragma omp simd// expected-error {{OpenMP constructs may not be nested inside a simd region}} +#pragma omp simd for (int i = 0; i < 10; ++i) ; } |