aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGenCXX/exceptions.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGenCXX/exceptions.cpp')
-rw-r--r--test/CodeGenCXX/exceptions.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/CodeGenCXX/exceptions.cpp b/test/CodeGenCXX/exceptions.cpp
index 4a32de024a..18a3d108dd 100644
--- a/test/CodeGenCXX/exceptions.cpp
+++ b/test/CodeGenCXX/exceptions.cpp
@@ -394,7 +394,11 @@ namespace test7 {
// Just don't crash.
namespace test8 {
struct A {
+ // Having both of these is required to trigger the assert we're
+ // trying to avoid.
A(const A&);
+ A&operator=(const A&);
+
~A();
};