1784fad7aSNick Lewycky // RUN: cp %s %t 2784fad7aSNick Lewycky // RUN: %clang_cc1 -pedantic -fixit %t 3*6d023c4fSAlp Toker // RUN: %clang_cc1 -pedantic -Werror -x c %t 4898840f9SMike Stump 5898840f9SMike Stump /* This is a test of the various code modification hints that are 6898840f9SMike Stump provided as part of warning or extension diagnostics. All of the 7898840f9SMike Stump warnings will be fixed by -fixit, and the resulting file should 8898840f9SMike Stump compile cleanly with -Werror -pedantic. */ 9898840f9SMike Stump 10898840f9SMike Stump // FIXME: If you put a space at the end of the line, it doesn't work yet! 11898840f9SMike Stump char *s = "hi\ 12898840f9SMike Stump there"; 13898840f9SMike Stump 14898840f9SMike Stump // The following line isn't terminated, don't fix it. 15898840f9SMike Stump int i; // expected-error{{no newline at end of file}} 16