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