Daniel Dunbar | a572887 | 2009-12-15 20:14:24 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -pedantic -fixit %s -o - | %clang_cc1 -pedantic -Werror -x c - |
Mike Stump | 20d0ee5 | 2009-04-02 02:29:42 +0000 | [diff] [blame] | 2 | |
| 3 | /* This is a test of the various code modification hints that are |
Mike Stump | 8e7ec66 | 2009-04-02 23:42:13 +0000 | [diff] [blame] | 4 | 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 Stump | 20d0ee5 | 2009-04-02 02:29:42 +0000 | [diff] [blame] | 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}} |