brintos

brintos / llvm-project-archived public Read only

0
0
Text · 318 B · 5a7bb32 Raw
12 lines · cpp
1// RUN: %clang_cc1 -std=c++11 -verify %s2// RUN: %clang_cc1 -std=c++17 -verify %s3// RUN: %clang_cc1 -std=c++20 -verify %s4 5enum class EC { ec };6using EC::ec;7#if __cplusplus < 2020028// expected-warning@-2 {{using declaration naming a scoped enumerator is a C++20 extension}}9#else10// expected-no-diagnostics11#endif12