summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGenCXX/member-init-anon-union.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Emit DeferredDeclsToEmit in a DFS order.Rafael Espindola2015-01-221-14/+12
| | | | | | | | | | | | | | Currently we emit DeferredDeclsToEmit in reverse order. This patch changes that. The advantages of the change are that * The output order is a bit closer to the source order. The change to test/CodeGenCXX/pod-member-memcpys.cpp is a good example. * If we decide to deffer more, it will not cause as large changes in the estcases as it would without this patch. llvm-svn: 226751
* Add a triple to this IRgen test to unbreak the ARM bots.Richard Smith2013-12-101-1/+1
| | | | llvm-svn: 196953
* Implement DR1460: fix handling of default initializers in unions; don't allowRichard Smith2013-12-101-1/+31
| | | | | | | | | 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. llvm-svn: 196892
* CHECK-LABEL-ify some code gen tests to improve diagnostic experience when ↵Stephen Lin2013-08-151-1/+1
| | | | | | tests fail. llvm-svn: 188447
* A union can have a constexpr defaulted default constructor, if it has anRichard Smith2012-05-071-2/+4
| | | | | | | | | 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. llvm-svn: 156274
* Update all tests other than Driver/std.cpp to use -std=c++11 rather thanRichard Smith2011-10-131-1/+1
| | | | | | -std=c++0x. Patch by Ahmed Charles! llvm-svn: 141900
* Fix PR10531. Attach an initializer to anonymous unions, since the default ↵Richard Smith2011-09-181-0/+35
constructor might not be trivial (if there is an in-class initializer for some member) and might be deleted. llvm-svn: 139991
OpenPOWER on IntegriCloud