blob: b26b6cd87560be65b65a0a946de99e75d4163c3b [file] [log] [blame]
Chris Lattnerb9849702004-11-22 19:11:40 +00001// RUN: %llvmgcc -S %s -o /dev/null
Tanya Lattnere9af5d12004-11-06 22:41:00 +00002
John Criswella29b94d2004-01-01 23:58:07 +00003/*
4 * This regression test ensures that the C front end can compile initializers
5 * even when it cannot determine the size (as below).
Tanya Lattner12ff9682004-11-06 20:38:27 +00006*/
John Criswella29b94d2004-01-01 23:58:07 +00007struct one
8{
9 int a;
10 int values [];
11};
12
13struct one hobbit = {5, {1, 2, 3}};
14