File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change 1
- // RUN: %clang_cc1 -fsyntax-only -pedantic -std=c++11 -verify -triple x86_64-apple-darwin %s
2
- // RUN: %clang_cc1 -fsyntax-only -pedantic -std=c++17 -verify -triple x86_64-apple-darwin %s
1
+ // RUN: %clang_cc1 -fsyntax-only -pedantic -std=c++11 -verify=expected,cxx11-17 -triple x86_64-apple-darwin %s
2
+ // RUN: %clang_cc1 -fsyntax-only -pedantic -std=c++17 -verify=expected,cxx11-17 -triple x86_64-apple-darwin %s
3
3
// RUN: %clang_cc1 -fsyntax-only -pedantic -std=c++20 -verify -triple x86_64-apple-darwin %s
4
4
5
5
enum class E1 {
@@ -329,10 +329,8 @@ namespace PR18044 {
329
329
int E::*p; // expected-error {{does not point into a class}}
330
330
using E::f; // expected-error {{no member named 'f'}}
331
331
332
- #if __cplusplus < 202002L
333
- using E::a; // expected-warning {{using declaration naming a scoped enumerator is a C++20 extension}}
332
+ using E::a; // cxx11-17-warning {{using declaration naming a scoped enumerator is a C++20 extension}}
334
333
E b = a;
335
- #endif
336
334
}
337
335
338
336
namespace test11 {
You can’t perform that action at this time.
0 commit comments