summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaTemplate/exception-spec-crash.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2019-05-06 05:04:56 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2019-05-06 05:04:56 +0000
commit2b45b267dab44442dbe68708be54e7d85e1b04dd (patch)
treef746cc2cafa1fe7af20fbd93f3aa0f17cee1cd90 /clang/test/SemaTemplate/exception-spec-crash.cpp
parent7d02ca48789e7963c9239a1d2f7e9c833b0aa3b1 (diff)
downloadbcm5719-llvm-2b45b267dab44442dbe68708be54e7d85e1b04dd.tar.gz
bcm5719-llvm-2b45b267dab44442dbe68708be54e7d85e1b04dd.zip
P1286R2: Remove restriction that the exception specification of a
defaulted special member matches the implicit exception specification. llvm-svn: 360011
Diffstat (limited to 'clang/test/SemaTemplate/exception-spec-crash.cpp')
-rw-r--r--clang/test/SemaTemplate/exception-spec-crash.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/clang/test/SemaTemplate/exception-spec-crash.cpp b/clang/test/SemaTemplate/exception-spec-crash.cpp
index ebbb30a2c23..1418ba65e16 100644
--- a/clang/test/SemaTemplate/exception-spec-crash.cpp
+++ b/clang/test/SemaTemplate/exception-spec-crash.cpp
@@ -1,5 +1,6 @@
// RUN: %clang_cc1 -std=c++11 -fsyntax-only -verify %s -Wno-defaulted-function-deleted
// RUN: %clang_cc1 -std=c++11 -fcxx-exceptions -DCXX_EXCEPTIONS -fsyntax-only -verify %s -Wno-defaulted-function-deleted
+// expected-no-diagnostics
template <class _Tp> struct is_nothrow_move_constructible {
static const bool value = false;
@@ -20,11 +21,6 @@ class basic_string {
class Foo {
Foo(Foo &&) noexcept = default;
-#ifdef CXX_EXCEPTIONS
-// expected-error@-2 {{does not match the calculated}}
-#else
-// expected-no-diagnostics
-#endif
Foo &operator=(Foo &&) noexcept = default;
basic_string<allocator<char> > vectorFoo_;
};
OpenPOWER on IntegriCloud