Regression test for initializers with members of unknown size.
authorJohn Criswell <criswell@uiuc.edu>
Thu, 1 Jan 2004 23:58:07 +0000 (23:58 +0000)
committerJohn Criswell <criswell@uiuc.edu>
Thu, 1 Jan 2004 23:58:07 +0000 (23:58 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10678 91177308-0d34-0410-b5e6-96231b3b80d8

test/CFrontend/2004-01-01-UnknownInitSize.c [new file with mode: 0644]

diff --git a/test/CFrontend/2004-01-01-UnknownInitSize.c b/test/CFrontend/2004-01-01-UnknownInitSize.c
new file mode 100644 (file)
index 0000000..076c54b
--- /dev/null
@@ -0,0 +1,12 @@
+/*
+ * This regression test ensures that the C front end can compile initializers
+ * even when it cannot determine the size (as below).
+ */
+struct one
+{
+  int a;
+  int values [];
+};
+
+struct one hobbit = {5, {1, 2, 3}};
+