xref: /aosp_15_r20/external/clang/test/SemaCXX/ms-exception-spec.cpp (revision 67e74705e28f6214e480b399dd47ea732279e315)
1*67e74705SXin Li // RUN: %clang_cc1 %s -fsyntax-only -verify -fms-extensions -fexceptions -fcxx-exceptions
2*67e74705SXin Li 
f()3*67e74705SXin Li void f() throw(...) { }
4*67e74705SXin Li 
5*67e74705SXin Li namespace PR28080 {
6*67e74705SXin Li struct S;           // expected-note {{forward declaration}}
7*67e74705SXin Li void fn() throw(S); // expected-warning {{incomplete type}} expected-note{{previous declaration}}
8*67e74705SXin Li void fn() throw();  // expected-warning {{does not match previous declaration}}
9*67e74705SXin Li }
10