From 41ebe0ce64bfc5ea208fc391b6dabd39bf670cec Mon Sep 17 00:00:00 2001 From: Alexey Bataev Date: Thu, 9 May 2019 18:14:57 +0000 Subject: [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: 360362 --- clang/test/OpenMP/parallel_sections_messages.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'clang/test/OpenMP/parallel_sections_messages.cpp') 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}} } -- cgit v1.2.3