Test cases for r127309. <rdar://problem/9055247>
authorStuart Hastings <stuart@apple.com>
Wed, 9 Mar 2011 03:59:52 +0000 (03:59 +0000)
committerStuart Hastings <stuart@apple.com>
Wed, 9 Mar 2011 03:59:52 +0000 (03:59 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127310 91177308-0d34-0410-b5e6-96231b3b80d8

test/FrontendC/2011-03-02-UnionInitializer.c [new file with mode: 0644]
test/FrontendC/2011-03-08-ZeroFieldUnionInitializer.c [new file with mode: 0644]

diff --git a/test/FrontendC/2011-03-02-UnionInitializer.c b/test/FrontendC/2011-03-02-UnionInitializer.c
new file mode 100644 (file)
index 0000000..a5ea75e
--- /dev/null
@@ -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 (file)
index 0000000..30a715b
--- /dev/null
@@ -0,0 +1,6 @@
+typedef struct {
+  union {
+    struct { } __attribute((packed));
+  };
+} fenv_t;
+const fenv_t _FE_DFL_ENV = {{{ 0, 0, 0, 0 }}};