summaryrefslogtreecommitdiffstats
path: root/test/OpenMP/teams_reduction_messages.cpp
diff options
context:
space:
mode:
authorAlexey Bataev <a.bataev@hotmail.com>2016-03-31 09:13:44 +0000
committerAlexey Bataev <a.bataev@hotmail.com>2016-03-31 09:13:44 +0000
commit01680934f198be5ade4780acc37aa34a3e7e3ead (patch)
tree81a77a11cd8e2e32d093b85787b6c2143aef4895 /test/OpenMP/teams_reduction_messages.cpp
parentd3491bd078c477e68d6a3aec1df37c63e255371c (diff)
[OPENMP] Allow skip expression after comma in clauses with lists.
Compatibility fix for better compatibility with the existing software. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@265003 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/OpenMP/teams_reduction_messages.cpp')
-rw-r--r--test/OpenMP/teams_reduction_messages.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/OpenMP/teams_reduction_messages.cpp b/test/OpenMP/teams_reduction_messages.cpp
index 0420b010bb..03ae6a5fd8 100644
--- a/test/OpenMP/teams_reduction_messages.cpp
+++ b/test/OpenMP/teams_reduction_messages.cpp
@@ -106,7 +106,7 @@ T tmain(T argc) {
#pragma omp teams reduction(& : argc // expected-error {{expected ')'}} expected-note {{to match this '('}} expected-error {{invalid operands to binary expression ('float' and 'float')}}
foo();
#pragma omp target
-#pragma omp teams 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 teams reduction(| : argc, // expected-error {{expected ')'}} expected-note {{to match this '('}} expected-error {{invalid operands to binary expression ('float' and 'float')}}
foo();
#pragma omp target
#pragma omp teams reduction(|| : argc ? i : argc) // expected-error 2 {{expected variable name, array element or array section}}
@@ -236,7 +236,7 @@ int main(int argc, char **argv) {
#pragma omp teams reduction(foo : argc // expected-error {{expected ')'}} expected-note {{to match this '('}} expected-error {{incorrect reduction identifier, expected one of '+', '-', '*', '&', '|', '^', '&&', '||', 'min' or 'max'}}
foo();
#pragma omp target
-#pragma omp teams reduction(| : argc, // expected-error {{expected expression}} expected-error {{expected ')'}} expected-note {{to match this '('}}
+#pragma omp teams reduction(| : argc, // expected-error {{expected ')'}} expected-note {{to match this '('}}
foo();
#pragma omp target
#pragma omp teams reduction(|| : argc > 0 ? argv[1] : argv[2]) // expected-error {{expected variable name, array element or array section}}