summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGenCXX/mangle.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2011-09-18 00:06:34 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2011-09-18 00:06:34 +0000
commit40372354290407a1126a43e01bbc515b1a904ca6 (patch)
tree4780dc2c154bf9f73f7ab6459c2a0d2a5917fa6d /clang/test/CodeGenCXX/mangle.cpp
parent7c29980d2090e47cb05f627eed604c9dea3a6ce6 (diff)
downloadbcm5719-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.cpp11
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 {};
OpenPOWER on IntegriCloud