diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/CodeGenCXX/destructors.cpp | 11 | ||||
-rw-r--r-- | test/SemaCXX/destructor.cpp | 4 |
2 files changed, 1 insertions, 14 deletions
diff --git a/test/CodeGenCXX/destructors.cpp b/test/CodeGenCXX/destructors.cpp index 62621f6e98..1442e37403 100644 --- a/test/CodeGenCXX/destructors.cpp +++ b/test/CodeGenCXX/destructors.cpp @@ -32,17 +32,6 @@ struct C { C::~C() { } -namespace PR7526 { - extern void foo(); - struct allocator { - ~allocator() throw(); - }; - - // CHECK: define void @_ZN6PR75269allocatorD2Ev - // CHECK: call void @__cxa_call_unexpected - allocator::~allocator() throw() { foo(); } -} - // PR5084 template<typename T> class A1 { diff --git a/test/SemaCXX/destructor.cpp b/test/SemaCXX/destructor.cpp index 1d36ceab23..ae3dc86e97 100644 --- a/test/SemaCXX/destructor.cpp +++ b/test/SemaCXX/destructor.cpp @@ -19,9 +19,7 @@ struct D { // expected-error{{type qualifier is not allowed on this function}} \ // expected-error{{destructor cannot be declared 'static'}} \ // expected-error{{destructor cannot have any parameters}} \ - // expected-error{{destructor cannot be variadic}} \ - // expected-error{{destructor cannot have a return type}} \ - // expected-error{{'const' qualifier is not allowed on a destructor}} + // expected-error{{destructor cannot be variadic}} }; struct D2 { |