brintos

brintos / llvm-project-archived public Read only

0
0
Text · 355 B · 1f07a7f Raw
7 lines · cpp
1// RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s2 3struct a; // expected-note {{forward declaration of 'a'}} \4             expected-note {{forward declaration of 'a'}}5void b(a c = [] { return c; }); // expected-error {{initialization of incomplete type 'a'}} \6                                   expected-error {{variable has incomplete type 'a'}}7