blob: 96f27eb6d0e900d9702d96d02cba3be39237c958 [file] [log] [blame]
Nick Lewyckyba5f6ec2010-04-24 01:30:46 +00001// RUN: cp %s %t
2// RUN: %clang_cc1 -pedantic -fixit %t
3// RUN: echo %clang_cc1 -pedantic -Werror -x c %t
4/* XPASS: * */
Mike Stump20d0ee52009-04-02 02:29:42 +00005
6/* This is a test of the various code modification hints that are
Mike Stump8e7ec662009-04-02 23:42:13 +00007 provided as part of warning or extension diagnostics. All of the
8 warnings will be fixed by -fixit, and the resulting file should
9 compile cleanly with -Werror -pedantic. */
10
Mike Stump20d0ee52009-04-02 02:29:42 +000011// FIXME: If you put a space at the end of the line, it doesn't work yet!
12char *s = "hi\
13there";
14
15// The following line isn't terminated, don't fix it.
16int i; // expected-error{{no newline at end of file}}