summaryrefslogtreecommitdiffstats
path: root/test/Lexer/newline-eof-c++98-compat.cpp
blob: 7f7eebbad7d3949ac7761bb6c35a25733361f28e (plain)
1
2
3
4
// RUN: %clang -cc1 -fsyntax-only -Wc++98-compat-pedantic -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}}
OpenPOWER on IntegriCloud