2009-12-16 04:14:24 +08:00
|
|
|
// RUN: %clang_cc1 -fsyntax-only -verify %s
|
2009-12-09 01:45:32 +08:00
|
|
|
|
2014-01-11 10:37:12 +08:00
|
|
|
template<typename T> void f1(T*) throw(T); // expected-error{{incomplete type 'Incomplete' is not allowed in exception specification}}
|
2009-12-09 01:45:32 +08:00
|
|
|
struct Incomplete; // expected-note{{forward}}
|
|
|
|
|
|
|
|
void test_f1(Incomplete *incomplete_p, int *int_p) {
|
|
|
|
f1(int_p);
|
2014-01-11 10:37:12 +08:00
|
|
|
f1(incomplete_p); // expected-note{{instantiation of}}
|
2009-12-09 01:45:32 +08:00
|
|
|
}
|