Chris Lattner | b984970 | 2004-11-22 19:11:40 +0000 | [diff] [blame] | 1 | // RUN: %llvmgcc -S %s -o /dev/null |
Tanya Lattner | e9af5d1 | 2004-11-06 22:41:00 +0000 | [diff] [blame] | 2 | |
John Criswell | a29b94d | 2004-01-01 23:58:07 +0000 | [diff] [blame] | 3 | /* |
| 4 | * This regression test ensures that the C front end can compile initializers |
| 5 | * even when it cannot determine the size (as below). |
Tanya Lattner | 12ff968 | 2004-11-06 20:38:27 +0000 | [diff] [blame] | 6 | */ |
John Criswell | a29b94d | 2004-01-01 23:58:07 +0000 | [diff] [blame] | 7 | struct one |
| 8 | { |
| 9 | int a; |
| 10 | int values []; |
| 11 | }; |
| 12 | |
| 13 | struct one hobbit = {5, {1, 2, 3}}; |
| 14 | |