llvm-for-llvmta/tools/clang/test/CXX/dcl.dcl/basic.namespace/namespace.udecl/p7.cpp

5 lines
154 B
C++
Raw Normal View History

2022-04-25 13:02:35 +02:00
// RUN: %clang_cc1 -std=c++11 -verify %s
enum class EC { ec };
using EC::ec; // expected-error {{using declaration cannot refer to a scoped enumerator}}