blob: 968d1d23151c19b25b230293dc6da30e41445e4a [file] [log] [blame]
Daniel Dunbar73dd7682009-11-14 04:39:42 +00001// RUN: clang-cc -pedantic -fixit %s -o - | clang-cc -pedantic -Werror -x c -
Mike Stump20d0ee52009-04-02 02:29:42 +00002
3/* This is a test of the various code modification hints that are
Mike Stump8e7ec662009-04-02 23:42:13 +00004 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
Mike Stump20d0ee52009-04-02 02:29:42 +00008// FIXME: If you put a space at the end of the line, it doesn't work yet!
9char *s = "hi\
10there";
11
12// The following line isn't terminated, don't fix it.
13int i; // expected-error{{no newline at end of file}}