[clang-cl] Ignore /Wv and /Wv:17 flags
[llvm-project.git] / clang / test / SemaCXX / constexpr-default-init-value-crash.cpp
blobd20d28d199d416bb9966560ed61d18f85dbecf8d
1 // RUN: %clang_cc1 %s -std=c++20 -fsyntax-only -verify
2 // RUN: %clang_cc1 %s -std=c++20 -fsyntax-only -verify -fno-recovery-ast
4 namespace NoCrash {
5 struct ForwardDecl; // expected-note {{forward declaration of}}
6 struct Foo { // expected-note 2{{candidate constructor}}
7 ForwardDecl f; // expected-error {{field has incomplete type}}
8 };
10 constexpr Foo getFoo() {
11 Foo e = 123; // expected-error {{no viable conversion from 'int' to 'NoCrash::Foo'}}
12 return e;