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