2016-06-11 09:25:04 +08:00
|
|
|
// RUN: %clang_cc1 %s -fsyntax-only -verify -fms-extensions -fexceptions -fcxx-exceptions
|
2008-12-02 02:00:20 +08:00
|
|
|
|
|
|
|
void f() throw(...) { }
|
2016-06-11 02:24:41 +08:00
|
|
|
|
|
|
|
namespace PR28080 {
|
2016-06-11 09:25:04 +08:00
|
|
|
struct S; // expected-note {{forward declaration}}
|
|
|
|
void fn() throw(S); // expected-warning {{incomplete type}} expected-note{{previous declaration}}
|
|
|
|
void fn() throw(); // expected-warning {{does not match previous declaration}}
|
2016-06-11 02:24:41 +08:00
|
|
|
}
|