diff options
author | Alexey Bataev <a.bataev@hotmail.com> | 2016-03-31 09:13:44 +0000 |
---|---|---|
committer | Alexey Bataev <a.bataev@hotmail.com> | 2016-03-31 09:13:44 +0000 |
commit | 05968174c3c99b075dda38ff860d4ca8c4e7990e (patch) | |
tree | 79b92f55aec328f63b2226256b3cea761255166d /clang/test/OpenMP/simd_reduction_messages.cpp | |
parent | 6221be8e461ef5ce6cba05904260f697ce09eb81 (diff) | |
download | bcm5719-llvm-05968174c3c99b075dda38ff860d4ca8c4e7990e.tar.gz bcm5719-llvm-05968174c3c99b075dda38ff860d4ca8c4e7990e.zip |
[OPENMP] Allow skip expression after comma in clauses with lists.
Compatibility fix for better compatibility with the existing software.
llvm-svn: 265003
Diffstat (limited to 'clang/test/OpenMP/simd_reduction_messages.cpp')
-rw-r--r-- | clang/test/OpenMP/simd_reduction_messages.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/OpenMP/simd_reduction_messages.cpp b/clang/test/OpenMP/simd_reduction_messages.cpp index c47d53eb918..ee832fd0366 100644 --- a/clang/test/OpenMP/simd_reduction_messages.cpp +++ b/clang/test/OpenMP/simd_reduction_messages.cpp @@ -105,7 +105,7 @@ T tmain(T argc) { #pragma omp simd reduction(& : argc // expected-error {{expected ')'}} expected-note {{to match this '('}} expected-error {{invalid operands to binary expression ('float' and 'float')}} for (int i = 0; i < 10; ++i) foo(); -#pragma omp simd reduction(| : argc, // expected-error {{expected expression}} expected-error {{expected ')'}} expected-note {{to match this '('}} expected-error {{invalid operands to binary expression ('float' and 'float')}} +#pragma omp simd reduction(| : argc, // expected-error {{expected ')'}} expected-note {{to match this '('}} expected-error {{invalid operands to binary expression ('float' and 'float')}} for (int i = 0; i < 10; ++i) foo(); #pragma omp simd reduction(|| : argc ? i : argc) // expected-error 2 {{expected variable name, array element or array section}} @@ -230,7 +230,7 @@ int main(int argc, char **argv) { #pragma omp simd reduction(foo : argc // expected-error {{expected ')'}} expected-note {{to match this '('}} expected-error {{incorrect reduction identifier, expected one of '+', '-', '*', '&', '|', '^', '&&', '||', 'min' or 'max'}} for (int i = 0; i < 10; ++i) foo(); -#pragma omp simd reduction(| : argc, // expected-error {{expected expression}} expected-error {{expected ')'}} expected-note {{to match this '('}} +#pragma omp simd reduction(| : argc, // expected-error {{expected ')'}} expected-note {{to match this '('}} for (int i = 0; i < 10; ++i) foo(); #pragma omp simd reduction(|| : argc > 0 ? argv[1] : argv[2]) // expected-error {{expected variable name, array element or array section}} |