mirror of
https://github.com/Gericom/teak-llvm.git
synced 2025-06-25 22:38:56 -04:00

We shouldn't return true from CheckSpecifiedExceptionType if the record type is incomplete and -fms-extensions is engaged. Otherwise we will have an incomplete AST. llvm-svn: 272447
10 lines
377 B
C++
10 lines
377 B
C++
// RUN: %clang_cc1 %s -fsyntax-only -verify -fms-extensions -fexceptions -fcxx-exceptions
|
|
|
|
void f() throw(...) { }
|
|
|
|
namespace PR28080 {
|
|
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}}
|
|
}
|