aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGenCXX/exceptions.cpp
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2011-08-26 05:38:08 +0000
committerJohn McCall <rjmccall@apple.com>2011-08-26 05:38:08 +0000
commit90b2bdf3b96892ea44e5bf6869a92a08d09a6545 (patch)
treeb3450f870bae7b7ff609afaef861e8bd66525561 /test/CodeGenCXX/exceptions.cpp
parentf59f5dab08d157951369171eb91ed4d614b6bc4f (diff)
An initialization does not alias.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@138624 91177308-0d34-0410-b5e6-96231b3b80d8
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();
};