blob: c418fe16e87fdf11ef6dab03bcf06b1b19f0c145 [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!
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}