From: Stuart Hastings Date: Wed, 9 Mar 2011 03:59:52 +0000 (+0000) Subject: Test cases for r127309. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=ee0b7f4e099010d4f9f754ca0bb6475595191571;p=oota-llvm.git Test cases for r127309. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127310 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/FrontendC/2011-03-02-UnionInitializer.c b/test/FrontendC/2011-03-02-UnionInitializer.c new file mode 100644 index 00000000000..a5ea75e08c0 --- /dev/null +++ b/test/FrontendC/2011-03-02-UnionInitializer.c @@ -0,0 +1,2 @@ +// RUN: %llvmgcc -S %s +union { int :3; double f; } u17_017 = {17.17}; diff --git a/test/FrontendC/2011-03-08-ZeroFieldUnionInitializer.c b/test/FrontendC/2011-03-08-ZeroFieldUnionInitializer.c new file mode 100644 index 00000000000..30a715bd46f --- /dev/null +++ b/test/FrontendC/2011-03-08-ZeroFieldUnionInitializer.c @@ -0,0 +1,6 @@ +typedef struct { + union { + struct { } __attribute((packed)); + }; +} fenv_t; +const fenv_t _FE_DFL_ENV = {{{ 0, 0, 0, 0 }}};