diff options
author | Alexey Bataev <a.bataev@hotmail.com> | 2019-07-08 15:45:24 +0000 |
---|---|---|
committer | Alexey Bataev <a.bataev@hotmail.com> | 2019-07-08 15:45:24 +0000 |
commit | a914888b49590a38f4571434ddf951c687889e56 (patch) | |
tree | 9eefc6e2030d0706e91c35cfe5d31c85ddd39e0b /clang/test/OpenMP/parallel_sections_firstprivate_messages.cpp | |
parent | 320a28200f24452b224fb472529adba0964399ab (diff) | |
download | bcm5719-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_firstprivate_messages.cpp')
-rw-r--r-- | clang/test/OpenMP/parallel_sections_firstprivate_messages.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/clang/test/OpenMP/parallel_sections_firstprivate_messages.cpp b/clang/test/OpenMP/parallel_sections_firstprivate_messages.cpp index c161e6f747b..f07a7206958 100644 --- a/clang/test/OpenMP/parallel_sections_firstprivate_messages.cpp +++ b/clang/test/OpenMP/parallel_sections_firstprivate_messages.cpp @@ -1,6 +1,6 @@ -// RUN: %clang_cc1 -verify -fopenmp %s +// RUN: %clang_cc1 -verify -fopenmp %s -Wuninitialized -// RUN: %clang_cc1 -verify -fopenmp-simd %s +// RUN: %clang_cc1 -verify -fopenmp-simd %s -Wuninitialized extern int omp_default_mem_alloc; void foo() { @@ -67,7 +67,7 @@ template <class I, class C> int foomain(int argc, char **argv) { I e(4); C g(5); - int i; + int i, z; int &j = i; #pragma omp parallel sections firstprivate // expected-error {{expected '(' after 'firstprivate'}} { @@ -101,7 +101,7 @@ int foomain(int argc, char **argv) { { foo(); } -#pragma omp parallel sections firstprivate(a, b) // expected-error {{firstprivate variable with incomplete type 'S1'}} +#pragma omp parallel sections firstprivate(z, a, b) // expected-error {{firstprivate variable with incomplete type 'S1'}} { foo(); } @@ -173,7 +173,7 @@ int main(int argc, char **argv) { S5 g(5); S3 m; S6 n(2); - int i; + int i, z; int &j = i; #pragma omp parallel sections firstprivate // expected-error {{expected '(' after 'firstprivate'}} { @@ -199,7 +199,7 @@ int main(int argc, char **argv) { { foo(); } -#pragma omp parallel sections firstprivate(argc) +#pragma omp parallel sections firstprivate(argc, z) { foo(); } |