[llvm-commits] [llvm] r127310 - in /llvm/trunk/test/FrontendC: 2011-03-02-UnionInitializer.c 2011-03-08-ZeroFieldUnionInitializer.c
Stuart Hastings
stuart at apple.com
Tue Mar 8 19:59:52 PST 2011
Author: stuart
Date: Tue Mar 8 21:59:52 2011
New Revision: 127310
URL: http://llvm.org/viewvc/llvm-project?rev=127310&view=rev
Log:
Test cases for r127309. <rdar://problem/9055247>
Added:
llvm/trunk/test/FrontendC/2011-03-02-UnionInitializer.c
- copied unchanged from r127277, llvm/trunk/test/FrontendC/2011-03-02-UnionInitializer.c
llvm/trunk/test/FrontendC/2011-03-08-ZeroFieldUnionInitializer.c
Added: llvm/trunk/test/FrontendC/2011-03-08-ZeroFieldUnionInitializer.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC/2011-03-08-ZeroFieldUnionInitializer.c?rev=127310&view=auto
==============================================================================
--- llvm/trunk/test/FrontendC/2011-03-08-ZeroFieldUnionInitializer.c (added)
+++ llvm/trunk/test/FrontendC/2011-03-08-ZeroFieldUnionInitializer.c Tue Mar 8 21:59:52 2011
@@ -0,0 +1,6 @@
+typedef struct {
+ union {
+ struct { } __attribute((packed));
+ };
+} fenv_t;
+const fenv_t _FE_DFL_ENV = {{{ 0, 0, 0, 0 }}};
More information about the llvm-commits
mailing list