From a914888b49590a38f4571434ddf951c687889e56 Mon Sep 17 00:00:00 2001 From: Alexey Bataev Date: Mon, 8 Jul 2019 15:45:24 +0000 Subject: [OPENMP]Add -Wunintialized to the erroneous tests for future fix PR42392, NFC. llvm-svn: 365334 --- .../test/OpenMP/parallel_sections_firstprivate_messages.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'clang/test/OpenMP/parallel_sections_firstprivate_messages.cpp') 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 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(); } -- cgit v1.2.3