Regression test for initializers with members of unknown size.

llvm-svn: 10678
This commit is contained in:
John Criswell 2004-01-01 23:58:07 +00:00
parent 5782ca06fc
commit 2c501eca03
1 changed files with 12 additions and 0 deletions

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