blob: 8097258fb0e7afc7132939b81d5c6136921b8438 [file] [log] [blame]
/*
* This regression test ensures that the C front end can compile initializers
* correctly when their size is not static.
*/
struct one
{
int a;
int values [];
};
struct one hobbit = {5, {1, 2, 3}};
int
main ()
{
int index;
for (index=0; index < 3; index++)
{
printf ("%d\n", hobbit.values[index]);
}
return 0;
}