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
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}}
10 constexpr Foo
getFoo() {
11 Foo e
= 123; // expected-error {{no viable conversion from 'int' to 'Foo'}}