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 | * XFAIL: linux,darwin |
| 7 | */ |
John Criswell | a29b94d | 2004-01-01 23:58:07 +0000 | [diff] [blame] | 8 | struct one |
| 9 | { |
| 10 | int a; |
| 11 | int values []; |
| 12 | }; |
| 13 | |
| 14 | struct one hobbit = {5, {1, 2, 3}}; |
| 15 | |