xref: /minix3/external/bsd/llvm/dist/clang/test/CXX/dcl.dcl/dcl.spec/dcl.stc/p9.cpp (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1 // RUN: %clang_cc1 -verify %s
2 
3 struct S; // expected-note 2{{forward declaration of 'S'}}
4 extern S a;
5 extern S f(); // expected-note {{'f' declared here}}
6 extern void g(S a);
7 
h()8 void h() {
9   g(a); // expected-error {{argument type 'S' is incomplete}}
10   f(); // expected-error {{calling 'f' with incomplete return type 'S'}}
11 }
12