diff options
Diffstat (limited to 'test/CXX/except')
-rw-r--r-- | test/CXX/except/except.spec/p14.cpp | 4 | ||||
-rw-r--r-- | test/CXX/except/except.spec/p4.cpp | 5 |
2 files changed, 7 insertions, 2 deletions
diff --git a/test/CXX/except/except.spec/p14.cpp b/test/CXX/except/except.spec/p14.cpp index dda69e9..945a767 100644 --- a/test/CXX/except/except.spec/p14.cpp +++ b/test/CXX/except/except.spec/p14.cpp @@ -44,8 +44,8 @@ namespace PR13381 { struct NoThrowMove { NoThrowMove(const NoThrowMove &); NoThrowMove(NoThrowMove &&) noexcept; - NoThrowMove &operator=(const NoThrowMove &); - NoThrowMove &operator=(NoThrowMove &&) noexcept; + NoThrowMove &operator=(const NoThrowMove &) const; + NoThrowMove &operator=(NoThrowMove &&) const noexcept; }; struct NoThrowMoveOnly { NoThrowMoveOnly(NoThrowMoveOnly &&) noexcept; diff --git a/test/CXX/except/except.spec/p4.cpp b/test/CXX/except/except.spec/p4.cpp index 1bf7018..8d1b75f 100644 --- a/test/CXX/except/except.spec/p4.cpp +++ b/test/CXX/except/except.spec/p4.cpp @@ -34,3 +34,8 @@ template<typename T> struct U { template<typename T> U<T>::~U() noexcept(true) {} // expected-error {{exception specification in declaration does not match previous declaration}} template<typename T> void U<T>::operator delete(void*) noexcept(false) {} // expected-error {{exception specification in declaration does not match previous declaration}} + + +// Make sure this restriction interacts properly with __attribute__((noreturn)) +void __attribute__ ((__noreturn__)) PR17110(int status) throw(); +void PR17110(int status) throw(); |