summaryrefslogtreecommitdiffstats
path: root/test/Lexer/newline-eof.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/Lexer/newline-eof.c')
-rw-r--r--test/Lexer/newline-eof.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/Lexer/newline-eof.c b/test/Lexer/newline-eof.c
index 825a266..a4a1883 100644
--- a/test/Lexer/newline-eof.c
+++ b/test/Lexer/newline-eof.c
@@ -1,5 +1,9 @@
// RUN: %clang_cc1 -fsyntax-only -Wnewline-eof -verify %s
+// RUN: %clang_cc1 -fsyntax-only -Wnewline-eof %s 2>&1 | FileCheck %s
// rdar://9133072
+// Make sure the diagnostic shows up properly at the end of the last line.
+// CHECK: newline-eof.c:9:63
+
// The following line isn't terminated, don't fix it.
void foo() {} // expected-warning{{no newline at end of file}} \ No newline at end of file
OpenPOWER on IntegriCloud