Seth Cantrell | 5d2d046 | 2012-04-15 04:41:49 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -fsyntax-only -Wnewline-eof -verify %s |
Jordan Rose | 2e413f9 | 2012-06-19 03:09:38 +0000 | [diff] [blame] | 2 | // RUN: %clang_cc1 -fsyntax-only -Wnewline-eof %s 2>&1 | FileCheck %s |
Anna Zaks | cfe1bcb | 2011-07-22 23:08:19 +0000 | [diff] [blame] | 3 | // rdar://9133072 |
| 4 | |
Jordan Rose | 2e413f9 | 2012-06-19 03:09:38 +0000 | [diff] [blame] | 5 | // Make sure the diagnostic shows up properly at the end of the last line. |
| 6 | // CHECK: newline-eof.c:9:63 |
| 7 | |
Anna Zaks | cfe1bcb | 2011-07-22 23:08:19 +0000 | [diff] [blame] | 8 | // The following line isn't terminated, don't fix it. |
Seth Cantrell | d555222 | 2012-04-13 01:00:34 +0000 | [diff] [blame] | 9 | void foo() {} // expected-warning{{no newline at end of file}} |