diff options
author | John McCall <rjmccall@apple.com> | 2010-08-05 22:02:13 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2010-08-05 22:02:13 +0000 |
commit | 7121c8f551d9c91c0cf0e5e1f7f9aafa97241b17 (patch) | |
tree | 099aaf34b7e07f43b544874e611430fcb00954bc /test/CodeGenCXX/mangle.cpp | |
parent | a7be5065edc93ab52a25b2588a23a41a4beba21e (diff) |
Don't crash when mangling empty anonymous unions. We never actually *need*
these, but it's convenient to mangle them when deferring them (in the 99.99%
case where it's not an anonymous union, of course).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110381 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenCXX/mangle.cpp')
-rw-r--r-- | test/CodeGenCXX/mangle.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/CodeGenCXX/mangle.cpp b/test/CodeGenCXX/mangle.cpp index 3a2e112f16..4152dabc0b 100644 --- a/test/CodeGenCXX/mangle.cpp +++ b/test/CodeGenCXX/mangle.cpp @@ -529,3 +529,14 @@ namespace test15 { // CHECK: define weak_odr void @_ZN6test151fILi7EEEvNS_1SIXplT_LNS_1EE3EEEE( template void f<7>(S<7 + e>); } + +// rdar://problem/8125400. Don't crash. +namespace test16 { + static union {}; + static union { union {}; }; + static union { struct {}; }; + static union { union { union {}; }; }; + static union { union { struct {}; }; }; + static union { struct { union {}; }; }; + static union { struct { struct {}; }; }; +} |