[llvm-commits] CVS: llvm/test/Regression/CFrontend/2004-01-01-UnknownInitSize.c
John Criswell
criswell at cs.uiuc.edu
Thu Jan 1 17:59:01 PST 2004
Changes in directory llvm/test/Regression/CFrontend:
2004-01-01-UnknownInitSize.c added (r1.1)
---
Log message:
Regression test for initializers with members of unknown size.
---
Diffs of the changes: (+12 -0)
Index: llvm/test/Regression/CFrontend/2004-01-01-UnknownInitSize.c
diff -c /dev/null llvm/test/Regression/CFrontend/2004-01-01-UnknownInitSize.c:1.1
*** /dev/null Thu Jan 1 17:58:18 2004
--- llvm/test/Regression/CFrontend/2004-01-01-UnknownInitSize.c Thu Jan 1 17:58:07 2004
***************
*** 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}};
+
More information about the llvm-commits
mailing list