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