| Richard Smith | acd4d3d | 2011-10-15 01:18:56 +0000 | [diff] [blame^] | 1 | // RUN: %clang_cc1 -fsyntax-only -std=c++11 -Wc++98-compat-pedantic -verify %s |
| 2 | // RUN: %clang_cc1 -fsyntax-only -std=c++98 -Werror %s |
| 3 | |
| 4 | // -Wc++98-compat-pedantic warns on C++11 features which we accept without a |
| 5 | // warning in C++98 mode. |
| 6 | |
| 7 | #line 32767 // ok |
| 8 | #line 32768 // expected-warning {{#line number greater than 32767 is incompatible with C++98}} |
| 9 | |
| 10 | #define VA_MACRO(x, ...) x // expected-warning {{variadic macros are incompatible with C++98}} |
| 11 | VA_MACRO(,x) // expected-warning {{empty macro argument list is incompatible with C++98}} |