blob: 993ee8dfae1ff747f8b1bdbc4d22545a972ea410 (
plain)
1
2
3
4
5
6
7
8
9
|
// 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}}
}
|