• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // RUN: %clang_cc1 -fsyntax-only -Wnewline-eof -verify %s
2 // RUN: %clang_cc1 -fsyntax-only -Wnewline-eof %s 2>&1 | FileCheck %s
3 // rdar://9133072
4 
5 // Make sure the diagnostic shows up properly at the end of the last line.
6 // CHECK: newline-eof.c:9:63
7 
8 // The following line isn't terminated, don't fix it.
foo()9 void foo() {} // expected-warning{{no newline at end of file}}