commit | e7003b72e691c4d83ba5516c58bccc2f2a4b3fe0 | [log] [tgz] |
---|---|---|
author | Douglas Gregor <dgregor@apple.com> | Wed Jul 13 02:14:02 2011 +0000 |
committer | Douglas Gregor <dgregor@apple.com> | Wed Jul 13 02:14:02 2011 +0000 |
tree | 0b9dd9e034c6b185745a817ebf1085f80455632d | |
parent | 42068e9d420889014ee26894e421fead336b239d [diff] [blame] |
Eliminate an incomplete/incorrect attempt to provide support for C++0x unrestricted unions, which ended up attempting to initialize objects in a union (which CodeGen isn't prepared for). Fixes PR9683. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@135027 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/CodeGenCXX/anonymous-union-member-initializer.cpp b/test/CodeGenCXX/anonymous-union-member-initializer.cpp index ce2ffb3..324ff4a 100644 --- a/test/CodeGenCXX/anonymous-union-member-initializer.cpp +++ b/test/CodeGenCXX/anonymous-union-member-initializer.cpp
@@ -114,3 +114,19 @@ }; }; Foo<int> f; + +namespace PR9683 { + struct QueueEntry { + union { + struct { + void* mPtr; + union { + unsigned mSubmissionTag; + }; + }; + unsigned mValue; + }; + QueueEntry() {} + }; + QueueEntry QE; +}