Home | History | Annotate | Download | only in SemaTemplate
      1 // RUN: %clang_cc1 -fsyntax-only -verify %s
      2 
      3 template<typename T> void f1(T*) throw(T); // expected-error{{incomplete type 'Incomplete' is not allowed in exception specification}}
      4 struct Incomplete; // expected-note{{forward}}
      5 
      6 void test_f1(Incomplete *incomplete_p, int *int_p) {
      7   f1(int_p);
      8   f1(incomplete_p); // expected-note{{instantiation of}}
      9 }
     10