commit | 1366862c3f5d390140b5978380d9ac7317d60fc6 | [log] [tgz] |
---|---|---|
author | John McCall <rjmccall@apple.com> | Fri Aug 26 00:46:38 2011 +0000 |
committer | John McCall <rjmccall@apple.com> | Fri Aug 26 00:46:38 2011 +0000 |
tree | 6ad8cb72fe854c48e9c48431e6618cad223d9727 | |
parent | 669cffa41a8789840e7c3a9875aa5ef8c03f43ea [diff] [blame] |
The allocated exception slot does not alias anything; should fix self-host. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@138615 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/CodeGenCXX/exceptions.cpp b/test/CodeGenCXX/exceptions.cpp index 0ce9679..4a32de0 100644 --- a/test/CodeGenCXX/exceptions.cpp +++ b/test/CodeGenCXX/exceptions.cpp
@@ -390,3 +390,16 @@ return new B(A(), new B(A(), 0)); } } + +// Just don't crash. +namespace test8 { + struct A { + A(const A&); + ~A(); + }; + + A makeA(); + void test() { + throw makeA(); + } +}