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