]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/FixIt/fixit-errors-1.c
Update clang to r89205.
[FreeBSD/FreeBSD.git] / test / FixIt / fixit-errors-1.c
1 // RUN: clang-cc -pedantic -fixit %s -o - | clang-cc -pedantic -Werror -x c -
2
3 /* This is a test of the various code modification hints that are
4    provided as part of warning or extension diagnostics. All of the
5    warnings will be fixed by -fixit, and the resulting file should
6    compile cleanly with -Werror -pedantic. */
7
8 // FIXME: If you put a space at the end of the line, it doesn't work yet!
9 char *s = "hi\
10 there";
11
12 // The following line isn't terminated, don't fix it.
13 int i; // expected-error{{no newline at end of file}}