From 1b26ab1b5287ec6c00e8e506657abe438c90a71b Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Mon, 6 May 2019 05:04:56 +0000 Subject: P1286R2: Remove restriction that the exception specification of a defaulted special member matches the implicit exception specification. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@360011 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/SemaTemplate/exception-spec-crash.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'test/SemaTemplate') diff --git a/test/SemaTemplate/exception-spec-crash.cpp b/test/SemaTemplate/exception-spec-crash.cpp index ebbb30a2c2..1418ba65e1 100644 --- a/test/SemaTemplate/exception-spec-crash.cpp +++ b/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 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 > vectorFoo_; }; -- cgit v1.2.1