1 // Test this without pch.
2 // RUN: %clang_cc1 %s -include %s -verify -fsyntax-only -Wuninitialized
5 // RUN: %clang_cc1 %s -emit-pch -o %t
6 // RUN: %clang_cc1 %s -include-pch %t -verify -fsyntax-only -Wuninitialized
8 // RUN: %clang_cc1 %s -emit-pch -fpch-instantiate-templates -o %t
9 // RUN: %clang_cc1 %s -include-pch %t -verify -fsyntax-only -Wuninitialized
14 #pragma clang diagnostic push
15 #pragma clang diagnostic ignored "-Wuninitialized"
23 #pragma clang diagnostic pop
32 T b
= a
; // expected-warning {{variable 'a' is uninitialized}} \
33 expected
-note@
44 {{in instantiation of member function
}} \
34 expected
-note@
31 {{initialize the variable
'a' to silence
}}