From: John Criswell Date: Thu, 1 Jan 2004 23:58:07 +0000 (+0000) Subject: Regression test for initializers with members of unknown size. X-Git-Url: http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=commitdiff_plain;h=a29b94dd5a34dfdf189a1c1712058ebaab745715 Regression test for initializers with members of unknown size. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10678 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/CFrontend/2004-01-01-UnknownInitSize.c b/test/CFrontend/2004-01-01-UnknownInitSize.c new file mode 100644 index 00000000000..076c54b39f9 --- /dev/null +++ b/test/CFrontend/2004-01-01-UnknownInitSize.c @@ -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}}; +