summaryrefslogtreecommitdiffstats
path: root/libcxx/test/language.support/support.exception
diff options
context:
space:
mode:
authorAlexis Hunt <alercah@gmail.com>2011-07-18 17:07:53 +0000
committerAlexis Hunt <alercah@gmail.com>2011-07-18 17:07:53 +0000
commitf3ff9715617a8fe38ad2a9dc0afed68809ca26b7 (patch)
treecb0893b442d7a627ff4bcd66bbcbc089eb7cc1aa /libcxx/test/language.support/support.exception
parentabcfdcea5c6a4c7253bad1a06d5a30b315924a5c (diff)
downloadbcm5719-llvm-f3ff9715617a8fe38ad2a9dc0afed68809ca26b7.tar.gz
bcm5719-llvm-f3ff9715617a8fe38ad2a9dc0afed68809ca26b7.zip
Give A an explicitly non-throwing destructor so that B's destructor is
itself non-throwing. Since nested_exception's destructor is non-throwing, if B's destructor is not, this causes an error in C++03 mode due to the overriding function having a more lax specification. This did not occur in C++0x mode as A's destructor was implicitly non-throwing. llvm-svn: 135400
Diffstat (limited to 'libcxx/test/language.support/support.exception')
-rw-r--r--libcxx/test/language.support/support.exception/except.nested/rethrow_if_nested.pass.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libcxx/test/language.support/support.exception/except.nested/rethrow_if_nested.pass.cpp b/libcxx/test/language.support/support.exception/except.nested/rethrow_if_nested.pass.cpp
index e18a073b94a..567ed579eb7 100644
--- a/libcxx/test/language.support/support.exception/except.nested/rethrow_if_nested.pass.cpp
+++ b/libcxx/test/language.support/support.exception/except.nested/rethrow_if_nested.pass.cpp
@@ -22,7 +22,7 @@ class A
int data_;
public:
explicit A(int data) : data_(data) {}
- virtual ~A() {}
+ virtual ~A() _NOEXCEPT {}
friend bool operator==(const A& x, const A& y) {return x.data_ == y.data_;}
};
OpenPOWER on IntegriCloud