summaryrefslogtreecommitdiffstats
path: root/clang/test/OpenMP/parallel_sections_messages.cpp
diff options
context:
space:
mode:
authorAlexey Bataev <a.bataev@hotmail.com>2019-05-06 17:49:22 +0000
committerAlexey Bataev <a.bataev@hotmail.com>2019-05-06 17:49:22 +0000
commitcf9e7a282b74cd12cd266ab11291a58fdc871976 (patch)
treebf05b4eedbe1d76d98fe7ef08e485050fd155096 /clang/test/OpenMP/parallel_sections_messages.cpp
parent865a39d328c2fa0ce251447bf2d6005dbbfec595 (diff)
downloadbcm5719-llvm-cf9e7a282b74cd12cd266ab11291a58fdc871976.tar.gz
bcm5719-llvm-cf9e7a282b74cd12cd266ab11291a58fdc871976.zip
[OPENMP]Fix PR41768: check DSA for globals with `default(none)` clauses.
If the `default(none)` was specified for the construct, we might miss diagnostic for the globals without explicitly specified data-sharing attributes. Patch fixes this problem. llvm-svn: 360061
Diffstat (limited to 'clang/test/OpenMP/parallel_sections_messages.cpp')
-rw-r--r--clang/test/OpenMP/parallel_sections_messages.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/OpenMP/parallel_sections_messages.cpp b/clang/test/OpenMP/parallel_sections_messages.cpp
index 459953acd9a..81f0c517cde 100644
--- a/clang/test/OpenMP/parallel_sections_messages.cpp
+++ b/clang/test/OpenMP/parallel_sections_messages.cpp
@@ -62,7 +62,7 @@ int main(int argc, char **argv) {
break;
}
}
-#pragma omp parallel sections default(none)
+#pragma omp parallel sections default(none) // expected-note {{explicit data sharing attribute requested here}}
{
++argc; // expected-error {{variable 'argc' must have explicitly specified data sharing attributes}}
}
OpenPOWER on IntegriCloud