blob: 13b424319513826c55ed26a585b14b8226b9cc6b [file] [log] [blame]
Mike Stump0be88752009-04-02 02:29:42 +00001// RUN: clang-cc -fsyntax-only -pedantic -fixit %s -o - | clang-cc -pedantic -Werror -x c -
2
3/* This is a test of the various code modification hints that are
4 provided as part of warning or extension diagnostics. Eventually,
5 we would like to actually try to perform the suggested
6 modifications and compile the result to test that no warnings
7 remain. */
8// 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}}