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