[clang-cl] Ignore /Wv and /Wv:17 flags
[llvm-project.git] / clang / test / SemaCXX / pr18284-crash-on-invalid.cpp
blob5b1cb21f4bb6bd3738879948322f27696a703c5d
1 // RUN: %clang_cc1 -fsyntax-only -verify %s
2 // Don't crash (PR18284).
4 namespace n1 {
5 class A { };
6 class C { A a; };
8 A::RunTest() {} // expected-error {{C++ requires a type specifier for all declarations}}
10 void f() {
11 new C;
13 } // namespace n1
15 namespace n2 {
16 class A { };
17 class C : public A { };
19 A::RunTest() {} // expected-error {{C++ requires a type specifier for all declarations}}
21 void f() {
22 new C;
24 } // namespace n2