diff options
| author | Alexey Bataev <a.bataev@hotmail.com> | 2013-12-18 08:46:25 +0000 |
|---|---|---|
| committer | Alexey Bataev <a.bataev@hotmail.com> | 2013-12-18 08:46:25 +0000 |
| commit | cb164ab273cc7b751a47302e0246b890ad1b351f (patch) | |
| tree | e70ef3ea5e2366fdd91773184a77d73ac6d47639 /clang/test/OpenMP/threadprivate_messages.cpp | |
| parent | 3460b2546c1b76f0772d2b3f8edbea0b8aa7f47b (diff) | |
| download | bcm5719-llvm-cb164ab273cc7b751a47302e0246b890ad1b351f.tar.gz bcm5719-llvm-cb164ab273cc7b751a47302e0246b890ad1b351f.zip | |
[OPENMP] Fix for parsing OpenMP directives with extra braces, brackets and parens
llvm-svn: 197553
Diffstat (limited to 'clang/test/OpenMP/threadprivate_messages.cpp')
| -rw-r--r-- | clang/test/OpenMP/threadprivate_messages.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/test/OpenMP/threadprivate_messages.cpp b/clang/test/OpenMP/threadprivate_messages.cpp index 4858549a703..1665c48cafb 100644 --- a/clang/test/OpenMP/threadprivate_messages.cpp +++ b/clang/test/OpenMP/threadprivate_messages.cpp @@ -24,6 +24,12 @@ int foo() { // expected-note {{declared here}} return (a); } +#pragma omp threadprivate (a) ( // expected-error {{'#pragma omp threadprivate' must precede all references to variable 'a'}} expected-warning {{extra tokens at the end of '#pragma omp threadprivate' are ignored}} +#pragma omp threadprivate (a) [ // expected-error {{'#pragma omp threadprivate' must precede all references to variable 'a'}} expected-warning {{extra tokens at the end of '#pragma omp threadprivate' are ignored}} +#pragma omp threadprivate (a) { // expected-error {{'#pragma omp threadprivate' must precede all references to variable 'a'}} expected-warning {{extra tokens at the end of '#pragma omp threadprivate' are ignored}} +#pragma omp threadprivate (a) ) // expected-error {{'#pragma omp threadprivate' must precede all references to variable 'a'}} expected-warning {{extra tokens at the end of '#pragma omp threadprivate' are ignored}} +#pragma omp threadprivate (a) ] // expected-error {{'#pragma omp threadprivate' must precede all references to variable 'a'}} expected-warning {{extra tokens at the end of '#pragma omp threadprivate' are ignored}} +#pragma omp threadprivate (a) } // expected-error {{'#pragma omp threadprivate' must precede all references to variable 'a'}} expected-warning {{extra tokens at the end of '#pragma omp threadprivate' are ignored}} #pragma omp threadprivate a // expected-error {{expected '(' after 'threadprivate'}} #pragma omp threadprivate(d // expected-error {{expected ')'}} expected-note {{to match this '('}} expected-error {{'#pragma omp threadprivate' must precede all references to variable 'd'}} #pragma omp threadprivate(d)) // expected-error {{'#pragma omp threadprivate' must precede all references to variable 'd'}} expected-warning {{extra tokens at the end of '#pragma omp threadprivate' are ignored}} |

