diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2011-09-18 00:06:34 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2011-09-18 00:06:34 +0000 |
commit | 40372354290407a1126a43e01bbc515b1a904ca6 (patch) | |
tree | 4780dc2c154bf9f73f7ab6459c2a0d2a5917fa6d /clang/test/CodeGenCXX/mangle.cpp | |
parent | 7c29980d2090e47cb05f627eed604c9dea3a6ce6 (diff) | |
download | bcm5719-llvm-40372354290407a1126a43e01bbc515b1a904ca6.tar.gz bcm5719-llvm-40372354290407a1126a43e01bbc515b1a904ca6.zip |
Fix PR10531. Attach an initializer to anonymous unions, since the default constructor might not be trivial (if there is an in-class initializer for some member) and might be deleted.
llvm-svn: 139991
Diffstat (limited to 'clang/test/CodeGenCXX/mangle.cpp')
-rw-r--r-- | clang/test/CodeGenCXX/mangle.cpp | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/clang/test/CodeGenCXX/mangle.cpp b/clang/test/CodeGenCXX/mangle.cpp index 453b7b713ac..60edc42bc97 100644 --- a/clang/test/CodeGenCXX/mangle.cpp +++ b/clang/test/CodeGenCXX/mangle.cpp @@ -533,17 +533,6 @@ namespace test15 { 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 {}; }; }; -} - // rdar://problem/8302148 namespace test17 { template <int N> struct A {}; |