summaryrefslogtreecommitdiff
path: root/test/FrontendC/2004-01-01-UnknownInitSize.c
blob: b26b6cd87560be65b65a0a946de99e75d4163c3b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// RUN: %llvmgcc -S %s -o /dev/null

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