summaryrefslogtreecommitdiffstats
path: root/test/Lexer/newline-eof.c
blob: a4a18835cf5fc1781bd7091af954aaf62c5111a9 (plain)
1
2
3
4
5
6
7
8
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}}
OpenPOWER on IntegriCloud