summaryrefslogtreecommitdiff
path: root/test/CodeGenCXX/member-init-anon-union.cpp
Commit message (Collapse)AuthorAge
* Add a triple to this IRgen test to unbreak the ARM bots.Richard Smith2013-12-10
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@196953 91177308-0d34-0410-b5e6-96231b3b80d8
* Implement DR1460: fix handling of default initializers in unions; don't allowRichard Smith2013-12-10
| | | | | | | | | | more than one such initializer in a union, make mem-initializers override default initializers for other union members, handle anonymous unions with anonymous struct members better. Fix a couple of semi-related bugs exposed by the tests for same. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@196892 91177308-0d34-0410-b5e6-96231b3b80d8
* CHECK-LABEL-ify some code gen tests to improve diagnostic experience when ↵Stephen Lin2013-08-15
| | | | | | tests fail. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@188447 91177308-0d34-0410-b5e6-96231b3b80d8
* A union can have a constexpr defaulted default constructor, if it has anRichard Smith2012-05-07
| | | | | | | | | | in-class initializer for one of its fields. Value-initialization of such a type should use the in-class initializer! The former was just a bug, the latter is a (reported) standard defect. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@156274 91177308-0d34-0410-b5e6-96231b3b80d8
* Update all tests other than Driver/std.cpp to use -std=c++11 rather thanRichard Smith2011-10-13
| | | | | | | -std=c++0x. Patch by Ahmed Charles! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@141900 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix PR10531. Attach an initializer to anonymous unions, since the default ↵Richard Smith2011-09-18
constructor might not be trivial (if there is an in-class initializer for some member) and might be deleted. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@139991 91177308-0d34-0410-b5e6-96231b3b80d8