diff options
| author | Richard Smith <richard-llvm@metafoo.co.uk> | 2016-11-02 00:47:52 +0000 |
|---|---|---|
| committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2016-11-02 00:47:52 +0000 |
| commit | a0fe8a324e3794fa9e2a7c4a707dfe1cfdd4a39e (patch) | |
| tree | 0c7e765b6f8af21e0a6ff3a8692801c72dd9a88e /clang/test | |
| parent | ae8e12e79f8dd158a1cadabc51c27c109f0f6f93 (diff) | |
| download | bcm5719-llvm-a0fe8a324e3794fa9e2a7c4a707dfe1cfdd4a39e.tar.gz bcm5719-llvm-a0fe8a324e3794fa9e2a7c4a707dfe1cfdd4a39e.zip | |
More forcibly resolve exception specifications when checking a function
redeclaration in C++1z mode. We need the exception specification in order for
the function's type to be complete.
llvm-svn: 285779
Diffstat (limited to 'clang/test')
| -rw-r--r-- | clang/test/SemaCXX/cxx1z-noexcept-function-type.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/clang/test/SemaCXX/cxx1z-noexcept-function-type.cpp b/clang/test/SemaCXX/cxx1z-noexcept-function-type.cpp index 72b28432ef0..ae686d396ba 100644 --- a/clang/test/SemaCXX/cxx1z-noexcept-function-type.cpp +++ b/clang/test/SemaCXX/cxx1z-noexcept-function-type.cpp @@ -89,3 +89,11 @@ namespace CompatWarning { template<typename T> void h(...) = delete; // expected-note {{deleted}} void test_h() { h<void>(nullptr); } // expected-error {{deleted}} } + +namespace ImplicitExceptionSpec { + struct S { + ~S(); + void f(const S &s = S()); + }; + S::~S() {} +} |

