Mike Stump | 0be8875 | 2009-04-02 02:29:42 +0000 | [diff] [blame^] | 1 | // 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! |
| 9 | char *s = "hi\ |
| 10 | there"; |
| 11 | |
| 12 | // The following line isn't terminated, don't fix it. |
| 13 | int i; // expected-error{{no newline at end of file}} |