Clang Project

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