diff options
author | Roman Lebedev <lebedev.ri@gmail.com> | 2019-05-09 10:48:13 +0000 |
---|---|---|
committer | Roman Lebedev <lebedev.ri@gmail.com> | 2019-05-09 10:48:13 +0000 |
commit | 513e4bd1d479219a88a92429359ebcb8762e2c8f (patch) | |
tree | 75a6fa5b17e9bbdc1bef528257563da0820a88d7 /test/OpenMP/task_messages.cpp | |
parent | ae700142cf513536f8b0681d6f93fa6e21217481 (diff) | |
download | clang-513e4bd1d479219a88a92429359ebcb8762e2c8f.tar.gz |
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.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@360327 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/OpenMP/task_messages.cpp')
-rw-r--r-- | test/OpenMP/task_messages.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/test/OpenMP/task_messages.cpp b/test/OpenMP/task_messages.cpp index 92bb14983b..d490c7f8ea 100644 --- a/test/OpenMP/task_messages.cpp +++ b/test/OpenMP/task_messages.cpp @@ -38,10 +38,10 @@ int foo() { #pragma omp task // expected-note@+1 2 {{predetermined as a firstprivate in a task construct here}} ++s1; -#pragma omp task default(none) // expected-note 2 {{explicit data sharing attribute requested here}} +#pragma omp task default(none) #pragma omp task default(shared) ++a; // expected-error 2 {{variable 'a' must have explicitly specified data sharing attributes}} -#pragma omp task default(none) // expected-note 2 {{explicit data sharing attribute requested here}} +#pragma omp task default(none) #pragma omp task // expected-error@+1 {{calling a private constructor of class 'S'}} ++a; // expected-error 2 {{variable 'a' must have explicitly specified data sharing attributes}} @@ -167,7 +167,7 @@ L1: break; } } -#pragma omp task default(none) // expected-note {{explicit data sharing attribute requested here}} +#pragma omp task default(none) ++argc; // expected-error {{variable 'argc' must have explicitly specified data sharing attributes}} goto L2; // expected-error {{use of undeclared label 'L2'}} @@ -184,10 +184,10 @@ L2: for (int n = 0; n < 100; ++n) { } -#pragma omp task default(none) // expected-note {{explicit data sharing attribute requested here}} +#pragma omp task default(none) #pragma omp task default(shared) ++a; // expected-error {{variable 'a' must have explicitly specified data sharing attributes}} -#pragma omp task default(none) // expected-note {{explicit data sharing attribute requested here}} +#pragma omp task default(none) #pragma omp task ++a; // expected-error {{variable 'a' must have explicitly specified data sharing attributes}} #pragma omp task default(shared) @@ -201,10 +201,10 @@ L2: #pragma omp task #pragma omp parallel shared(a, b) ++a, ++b; -#pragma omp task default(none) // expected-note {{explicit data sharing attribute requested here}} +#pragma omp task default(none) #pragma omp task default(shared) ++sa; // expected-error {{variable 'sa' must have explicitly specified data sharing attributes}} -#pragma omp task default(none) // expected-note {{explicit data sharing attribute requested here}} +#pragma omp task default(none) #pragma omp task // expected-error@+1 {{calling a private constructor of class 'S'}} ++sa; // expected-error {{variable 'sa' must have explicitly specified data sharing attributes}} |