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
This commit is contained in:
John Criswell 2004-01-01 23:58:07 +00:00
parent 2657aecfe2
commit a29b94dd5a

View File

@ -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}};