[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / Parser / cxx20-using-enum.cpp
blob78b9d00848c787dee7c022c6fcaed56e1cae41b6
1 // RUN: %clang_cc1 -std=c++20 -verify %s
3 namespace GH57347 {
4 namespace A {}
6 void f() {
7 using enum A::+; // expected-error {{using enum requires an enum or typedef name}}
8 using enum; // expected-error {{using enum requires an enum or typedef name}}
9 using enum class; // expected-error {{using enum requires an enum or typedef name}}
10 using enum enum q; // expected-error {{using enum does not permit an elaborated enum specifier}}