blob: d4f12df22ec2115f1ad32e65d4e5d39204b525b5 [file] [log] [blame]
Daniel Dunbara5728872009-12-15 20:14:24 +00001// RUN: %clang_cc1 -fsyntax-only -verify %s
Douglas Gregor0ae7b3f2009-12-08 17:45:32 +00002
3// FIXME: the "note" should be down at the call site!
John McCall7c2342d2010-03-10 11:27:22 +00004template<typename T> void f1(T*) throw(T); // expected-error{{incomplete type 'Incomplete' is not allowed in exception specification}} \
Douglas Gregor0ae7b3f2009-12-08 17:45:32 +00005 // 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}