blob: 0dbbe198e06149b68e9c525c74c528ea164df06b [file] [log] [blame]
Nick Lewycky784fad72010-04-24 01:30:46 +00001// RUN: cp %s %t
2// RUN: %clang_cc1 -pedantic -fixit %t
Alp Toker6d023c42013-11-03 01:50:38 +00003// RUN: %clang_cc1 -pedantic -Werror -x c %t
Mike Stump0be88752009-04-02 02:29:42 +00004
5/* This is a test of the various code modification hints that are
Mike Stump5230b852009-04-02 23:42:13 +00006 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. */
9
Mike Stump0be88752009-04-02 02:29:42 +000010// FIXME: If you put a space at the end of the line, it doesn't work yet!
11char *s = "hi\
12there";
13
14// The following line isn't terminated, don't fix it.
15int i; // expected-error{{no newline at end of file}}