Seth Cantrell | b0dfdfe | 2012-04-15 04:41:49 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -fsyntax-only -Wc++98-compat-pedantic -std=c++11 -verify %s |
Jordan Rose | 4c55d45 | 2013-08-23 15:42:01 +0000 | [diff] [blame^] | 2 | // RUN: %clang_cc1 -fsyntax-only -Wc++98-compat-pedantic -Wnewline-eof -std=c++11 -verify %s |
Seth Cantrell | e83c731 | 2012-04-13 03:43:23 +0000 | [diff] [blame] | 3 | |
4 | // The following line isn't terminated, don't fix it. | ||||
5 | void foo() {} // expected-warning{{C++98 requires newline at end of file}} |