diff options
author | David Majnemer <david.majnemer@gmail.com> | 2016-06-10 18:24:41 +0000 |
---|---|---|
committer | David Majnemer <david.majnemer@gmail.com> | 2016-06-10 18:24:41 +0000 |
commit | b2b0da4ad08da9a48940c4f5398c5603d78282b7 (patch) | |
tree | cca61afa4ed5245da2ec1f23399c194d0cf85270 /clang/test/SemaCXX/ms-exception-spec.cpp | |
parent | d558bdadd25a766cd31109a611396e53546e142b (diff) | |
download | bcm5719-llvm-b2b0da4ad08da9a48940c4f5398c5603d78282b7.tar.gz bcm5719-llvm-b2b0da4ad08da9a48940c4f5398c5603d78282b7.zip |
[-fms-extensions] Permit incomplete types in dynamic exception specifications
Microsoft headers, comdef.h and comutil.h, assume that this is an OK
thing to do. Downgrade the hard error to a warning if we are in
-fms-extensions mode.
This fixes PR28080.
llvm-svn: 272412
Diffstat (limited to 'clang/test/SemaCXX/ms-exception-spec.cpp')
-rw-r--r-- | clang/test/SemaCXX/ms-exception-spec.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/clang/test/SemaCXX/ms-exception-spec.cpp b/clang/test/SemaCXX/ms-exception-spec.cpp index 1be8ec29369..81e04dd54df 100644 --- a/clang/test/SemaCXX/ms-exception-spec.cpp +++ b/clang/test/SemaCXX/ms-exception-spec.cpp @@ -1,4 +1,8 @@ // RUN: %clang_cc1 %s -fsyntax-only -verify -fms-extensions -// expected-no-diagnostics void f() throw(...) { } + +namespace PR28080 { +struct S; // expected-note {{forward declaration}} +void fn() throw(S); // expected-warning {{incomplete type}} +} |