Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / CXX / dcl.dcl / basic.namespace / namespace.udecl / p7.cpp
blob5a7bb3268b65143c3f9e5973d22371e361e54dcc
1 // RUN: %clang_cc1 -std=c++11 -verify %s
2 // RUN: %clang_cc1 -std=c++17 -verify %s
3 // RUN: %clang_cc1 -std=c++20 -verify %s
5 enum class EC { ec };
6 using EC::ec;
7 #if __cplusplus < 202002
8 // expected-warning@-2 {{using declaration naming a scoped enumerator is a C++20 extension}}
9 #else
10 // expected-no-diagnostics
11 #endif