summaryrefslogtreecommitdiffstats
path: root/clang/test/OpenMP/parallel_messages.cpp
diff options
context:
space:
mode:
authorRoman Lebedev <lebedev.ri@gmail.com>2019-05-09 10:48:13 +0000
committerRoman Lebedev <lebedev.ri@gmail.com>2019-05-09 10:48:13 +0000
commita8f8d3b01e94c582346e5f3fa1f22de0a1834062 (patch)
treece67eeb5b6dfa8a8468cbf32bdc9ce3029d516f1 /clang/test/OpenMP/parallel_messages.cpp
parentb32a02b5bc6a335f2ac9bbfe1bebd8ab0fa29184 (diff)
downloadbcm5719-llvm-a8f8d3b01e94c582346e5f3fa1f22de0a1834062.tar.gz
bcm5719-llvm-a8f8d3b01e94c582346e5f3fa1f22de0a1834062.zip
Revert "[OPENMP]Fix PR41768: check DSA for globals with `default(none)` clauses."
This has introduced (exposed?) a crash in clang sema, that does not happen without this patch. I'll followup in the original bugreport and commit with reproducer. This reverts commit r360061. llvm-svn: 360327
Diffstat (limited to 'clang/test/OpenMP/parallel_messages.cpp')
-rw-r--r--clang/test/OpenMP/parallel_messages.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/clang/test/OpenMP/parallel_messages.cpp b/clang/test/OpenMP/parallel_messages.cpp
index 49fc2305ff3..8b0c0353c20 100644
--- a/clang/test/OpenMP/parallel_messages.cpp
+++ b/clang/test/OpenMP/parallel_messages.cpp
@@ -7,7 +7,6 @@ void foo() {
#pragma omp parallel // expected-error {{unexpected OpenMP directive '#pragma omp parallel'}}
-int a;
struct S;
S& bar();
int main(int argc, char **argv) {
@@ -55,11 +54,8 @@ int main(int argc, char **argv) {
break;
}
}
-#pragma omp parallel default(none) // expected-note 2 {{explicit data sharing attribute requested here}}
- {
- ++argc; // expected-error {{variable 'argc' must have explicitly specified data sharing attributes}}
- ++a; // expected-error {{variable 'a' must have explicitly specified data sharing attributes}}
- }
+ #pragma omp parallel default(none)
+ ++argc; // expected-error {{variable 'argc' must have explicitly specified data sharing attributes}}
goto L2; // expected-error {{use of undeclared label 'L2'}}
#pragma omp parallel
OpenPOWER on IntegriCloud