llvm-project
12 строк · 443.0 Байт
1// RUN: %clang_cc1 -std=c++20 -verify %s
2
3namespace GH57347 {4namespace A {}5
6void f() {7using enum A::+; // expected-error {{using enum requires an enum or typedef name}}8using enum; // expected-error {{using enum requires an enum or typedef name}}9using enum class; // expected-error {{using enum requires an enum or typedef name}}10using enum enum q; // expected-error {{using enum does not permit an elaborated enum specifier}}11}
12}
13