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