1 | // RUN: %clang_cc1 -std=c++11 -fsyntax-only %s |
---|---|
2 | // RUN: %clang_cc1 -std=c++98 -fsyntax-only -verify %s |
3 | |
4 | // expected-error@8 {{in c++98 only}} |
5 | #if 0 |
6 | R"( |
7 | #else |
8 | #error in c++98 only)" |
9 | #endif |
10 |
1 | // RUN: %clang_cc1 -std=c++11 -fsyntax-only %s |
---|---|
2 | // RUN: %clang_cc1 -std=c++98 -fsyntax-only -verify %s |
3 | |
4 | // expected-error@8 {{in c++98 only}} |
5 | #if 0 |
6 | R"( |
7 | #else |
8 | #error in c++98 only)" |
9 | #endif |
10 |