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 | 01680934f198be5ade4780acc37aa34a3e7e3ead (patch) | |
tree | 81a77a11cd8e2e32d093b85787b6c2143aef4895 /test/OpenMP/target_firstprivate_messages.cpp | |
parent | d3491bd078c477e68d6a3aec1df37c63e255371c (diff) | |
download | clang-01680934f198be5ade4780acc37aa34a3e7e3ead.tar.gz |
[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/target_firstprivate_messages.cpp')
-rw-r--r-- | test/OpenMP/target_firstprivate_messages.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/OpenMP/target_firstprivate_messages.cpp b/test/OpenMP/target_firstprivate_messages.cpp index 6dbad671de..f26ea62f62 100644 --- a/test/OpenMP/target_firstprivate_messages.cpp +++ b/test/OpenMP/target_firstprivate_messages.cpp @@ -97,7 +97,7 @@ int foomain(I argc, C **argv) { {} #pragma omp target firstprivate(argc // expected-error {{expected ')'}} expected-note {{to match this '('}} {} -#pragma omp target firstprivate(argc, // expected-error {{expected expression}} expected-error {{expected ')'}} expected-note {{to match this '('}} +#pragma omp target firstprivate(argc, // expected-error {{expected ')'}} expected-note {{to match this '('}} {} #pragma omp target firstprivate(argc > 0 ? argv[1] : argv[2]) // expected-error {{expected variable name}} {} @@ -157,7 +157,7 @@ int main(int argc, char **argv) { {} #pragma omp target firstprivate(argc // expected-error {{expected ')'}} expected-note {{to match this '('}} {} -#pragma omp target firstprivate(argc, // expected-error {{expected expression}} expected-error {{expected ')'}} expected-note {{to match this '('}} +#pragma omp target firstprivate(argc, // expected-error {{expected ')'}} expected-note {{to match this '('}} {} #pragma omp target firstprivate(argc > 0 ? argv[1] : argv[2]) // expected-error {{expected variable name}} {} |