blob: 31db4487a27a391378665225fb319acda9ef3f14 [file] [log] [blame]
Douglas Gregor0ae7b3f2009-12-08 17:45:32 +00001// RUN: clang-cc -fsyntax-only -verify %s
2
3// FIXME: the "note" should be down at the call site!
4template<typename T> void f1(T*) throw(T); // expected-error{{incomplete type 'struct Incomplete' is not allowed in exception specification}} \
5 // expected-note{{instantiation of}}
6struct Incomplete; // expected-note{{forward}}
7
8void test_f1(Incomplete *incomplete_p, int *int_p) {
9 f1(int_p);
10 f1(incomplete_p);
11}