1*f4a2713aSLionel Sambuc // RUN: cp %s %t 2*f4a2713aSLionel Sambuc // RUN: %clang_cc1 -pedantic -fixit %t 3*f4a2713aSLionel Sambuc // RUN: %clang_cc1 -pedantic -Werror -x c %t 4*f4a2713aSLionel Sambuc 5*f4a2713aSLionel Sambuc /* This is a test of the various code modification hints that are 6*f4a2713aSLionel Sambuc provided as part of warning or extension diagnostics. All of the 7*f4a2713aSLionel Sambuc warnings will be fixed by -fixit, and the resulting file should 8*f4a2713aSLionel Sambuc compile cleanly with -Werror -pedantic. */ 9*f4a2713aSLionel Sambuc 10*f4a2713aSLionel Sambuc // FIXME: If you put a space at the end of the line, it doesn't work yet! 11*f4a2713aSLionel Sambuc char *s = "hi\ 12*f4a2713aSLionel Sambuc there"; 13*f4a2713aSLionel Sambuc 14*f4a2713aSLionel Sambuc // The following line isn't terminated, don't fix it. 15*f4a2713aSLionel Sambuc int i; // expected-error{{no newline at end of file}} 16