blob: ca034e9404621f7b94b035344de915b637502e78 [file] [log] [blame]
Douglas Gregor558cb562009-04-02 01:08:08 +00001// RUN: clang -fsyntax-only -pedantic -fixit %s -o - | clang-cc -pedantic -Werror -x c -
Douglas Gregor9b3064b2009-04-01 22:41:11 +00002
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
9void f0(void) { };
10
11struct s {
12 int x, y;;
13};
14
15_Complex cd;
16
17struct s s0 = { y: 5 };
18int array0[5] = { [3] 3 };
Douglas Gregora3a83512009-04-01 23:51:29 +000019
20void f1(x, y)
21{
22}
23
24int i0 = { 17 };
25
26int f2(const char *my_string) {
27 // FIXME: terminal output isn't so good when "my_string" is shorter
Douglas Gregor558cb562009-04-02 01:08:08 +000028 // FIXME: Needs an #include hint, too!
29 // return my_string == "foo";
Douglas Gregora3a83512009-04-01 23:51:29 +000030}