newline-eof-c++98-compat.cpp revision 7865b8e4324378e06f59adb4d60bec26a7d3d584
1// RUN: %clang_cc1 -fsyntax-only -Wc++98-compat-pedantic -std=c++11 -verify %s
2// RUN: %clang_cc1 -fsyntax-only -Wc++98-compat-pedantic -Wnewline-eof -std=c++11 -verify %s
3
4// The following line isn't terminated, don't fix it.
5void foo() {} // expected-warning{{C++98 requires newline at end of file}}