1// RUN: %clang_cc1 -fsyntax-only -verify %s
2
3template<typename T> void f1(T*) throw(T); // expected-error{{incomplete type 'Incomplete' is not allowed in exception specification}}
4struct Incomplete; // expected-note{{forward}}
5
6void test_f1(Incomplete *incomplete_p, int *int_p) {
7  f1(int_p);
8  f1(incomplete_p); // expected-note{{instantiation of}}
9}
10