• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // RUN: %clang_cc1 -fsyntax-only -verify %s
2 
3 // FIXME: the "note" should be down at the call site!
4 template<typename T> void f1(T*) throw(T); // expected-error{{incomplete type 'Incomplete' is not allowed in exception specification}} \
5                          // expected-note{{instantiation of}}
6 struct Incomplete; // expected-note{{forward}}
7 
test_f1(Incomplete * incomplete_p,int * int_p)8 void test_f1(Incomplete *incomplete_p, int *int_p) {
9   f1(int_p);
10   f1(incomplete_p);
11 }
12