bolt/deps/llvm-18.1.8/clang/test/Lexer/newline-eof-c++98-compat.cpp
2025-02-14 19:21:04 +01:00

5 lines
No EOL
301 B
C++

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