summaryrefslogtreecommitdiffstats
path: root/clang/test/OpenMP/parallel_sections_shared_messages.cpp
diff options
context:
space:
mode:
authorAlexey Bataev <a.bataev@hotmail.com>2019-07-08 15:45:24 +0000
committerAlexey Bataev <a.bataev@hotmail.com>2019-07-08 15:45:24 +0000
commita914888b49590a38f4571434ddf951c687889e56 (patch)
tree9eefc6e2030d0706e91c35cfe5d31c85ddd39e0b /clang/test/OpenMP/parallel_sections_shared_messages.cpp
parent320a28200f24452b224fb472529adba0964399ab (diff)
downloadbcm5719-llvm-a914888b49590a38f4571434ddf951c687889e56.tar.gz
bcm5719-llvm-a914888b49590a38f4571434ddf951c687889e56.zip
[OPENMP]Add -Wunintialized to the erroneous tests for future fix PR42392,
NFC. llvm-svn: 365334
Diffstat (limited to 'clang/test/OpenMP/parallel_sections_shared_messages.cpp')
-rw-r--r--clang/test/OpenMP/parallel_sections_shared_messages.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/clang/test/OpenMP/parallel_sections_shared_messages.cpp b/clang/test/OpenMP/parallel_sections_shared_messages.cpp
index 1ab923c3308..554c6e2286c 100644
--- a/clang/test/OpenMP/parallel_sections_shared_messages.cpp
+++ b/clang/test/OpenMP/parallel_sections_shared_messages.cpp
@@ -1,6 +1,6 @@
-// RUN: %clang_cc1 -verify -fopenmp -ferror-limit 100 %s
+// RUN: %clang_cc1 -verify -fopenmp -ferror-limit 100 %s -Wuninitialized
-// RUN: %clang_cc1 -verify -fopenmp-simd -ferror-limit 100 %s
+// RUN: %clang_cc1 -verify -fopenmp-simd -ferror-limit 100 %s -Wuninitialized
void foo() {
}
@@ -63,7 +63,7 @@ int main(int argc, char **argv) {
const int da[5] = {0};
S4 e(4);
S5 g(5);
- int i;
+ int i, k;
int &j = i;
#pragma omp parallel sections shared // expected-error {{expected '(' after 'shared'}}
{ foo(); }
@@ -81,7 +81,7 @@ int main(int argc, char **argv) {
{ foo(); }
#pragma omp parallel sections shared(S1) // expected-error {{'S1' does not refer to a value}}
{ foo(); }
-#pragma omp parallel sections shared(a, b, c, d, f)
+#pragma omp parallel sections shared(a, b, c, d, f, k)
{ foo(); }
#pragma omp parallel sections shared(argv[1]) // expected-error {{expected variable name}}
{ foo(); }
OpenPOWER on IntegriCloud