blob: d4f12df22ec2115f1ad32e65d4e5d39204b525b5 [file] [log] [blame]
Shih-wei Liaoea285162010-06-04 12:34:56 -07001// RUN: %clang_cc1 -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 '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}