blob: 993ee8dfae1ff747f8b1bdbc4d22545a972ea410 [file] [log] [blame]
// RUN: %clang_cc1 -fsyntax-only -verify %s
template<typename T> void f1(T*) throw(T); // expected-error{{incomplete type 'Incomplete' is not allowed in exception specification}}
struct Incomplete; // expected-note{{forward}}
void test_f1(Incomplete *incomplete_p, int *int_p) {
f1(int_p);
f1(incomplete_p); // expected-note{{instantiation of}}
}