blob: 993ee8dfae1ff747f8b1bdbc4d22545a972ea410 [file] [log] [blame]
Shih-wei Liaoea285162010-06-04 12:34:56 -07001// RUN: %clang_cc1 -fsyntax-only -verify %s
2
Stephen Hines651f13c2014-04-23 16:59:28 -07003template<typename T> void f1(T*) throw(T); // expected-error{{incomplete type 'Incomplete' is not allowed in exception specification}}
Shih-wei Liaoea285162010-06-04 12:34:56 -07004struct Incomplete; // expected-note{{forward}}
5
6void test_f1(Incomplete *incomplete_p, int *int_p) {
7 f1(int_p);
Stephen Hines651f13c2014-04-23 16:59:28 -07008 f1(incomplete_p); // expected-note{{instantiation of}}
Shih-wei Liaoea285162010-06-04 12:34:56 -07009}