commit | 35e4f0cd0fc0e7f23b10c597f840639199f99eb0 | [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 | fe4ba267073d7f1ffd1ba8484023e42738acb2d9 | |
parent | 3b561ebd4478d7d62055bc5c9be3db10fa3c8c7f [diff] [blame] |
The allocated exception slot does not alias anything; should fix self-host. llvm-svn: 138615
diff --git a/clang/test/CodeGenCXX/exceptions.cpp b/clang/test/CodeGenCXX/exceptions.cpp index 0ce9679..4a32de0 100644 --- a/clang/test/CodeGenCXX/exceptions.cpp +++ b/clang/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(); + } +}