summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/struct.c
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2008-01-29 23:23:18 +0000
committerDevang Patel <dpatel@apple.com>2008-01-29 23:23:18 +0000
commit45a65d2ee19e349c3f98a4e4b586c96963ed947f (patch)
treedefaa6da727617374a32633670f7f23106540047 /clang/test/CodeGen/struct.c
parent284011b462938b7b60af89839dec32948f4d4b23 (diff)
downloadbcm5719-llvm-45a65d2ee19e349c3f98a4e4b586c96963ed947f.tar.gz
bcm5719-llvm-45a65d2ee19e349c3f98a4e4b586c96963ed947f.zip
Handle incomplete struct initializer.
llvm-svn: 46534
Diffstat (limited to 'clang/test/CodeGen/struct.c')
-rw-r--r--clang/test/CodeGen/struct.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/clang/test/CodeGen/struct.c b/clang/test/CodeGen/struct.c
index be5917a3da9..919983938f1 100644
--- a/clang/test/CodeGen/struct.c
+++ b/clang/test/CodeGen/struct.c
@@ -135,4 +135,8 @@ void f12()
const struct _a a2;
a1 = a2;
-} \ No newline at end of file
+}
+
+/* struct initialization */
+struct a13 {int b; int c};
+struct a13 c13 = {5};
OpenPOWER on IntegriCloud