[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / Lexer / newline-eof-c++98-compat.cpp
blob9af0b889537b83dcb6a593d195a76b39f61c7c52
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
4 // The following line isn't terminated, don't fix it.
5 void foo() {} // expected-warning{{C++98 requires newline at end of file}}