Douglas Gregor | 9b3064b | 2009-04-01 22:41:11 +0000 | [diff] [blame^] | 1 | // RUN: clang -fsyntax-only -pedantic %s |
2 | |||||
3 | /* This is a test of the various code modification hints that are | ||||
4 | provided as part of warning or extension diagnostics. Eventually, | ||||
5 | we would like to actually try to perform the suggested | ||||
6 | modifications and compile the result to test that no warnings | ||||
7 | remain. */ | ||||
8 | |||||
9 | void f0(void) { }; | ||||
10 | |||||
11 | struct s { | ||||
12 | int x, y;; | ||||
13 | }; | ||||
14 | |||||
15 | _Complex cd; | ||||
16 | |||||
17 | struct s s0 = { y: 5 }; | ||||
18 | int array0[5] = { [3] 3 }; |