[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / SemaTemplate / default-member-init.cpp
blob5615d11e33d6da8c34584dfafdc0aeee945489e3
1 // RUN: %clang_cc1 -std=c++20 -verify %s
2 // expected-no-diagnostics
4 struct Q { enum F { f }; };
6 template<typename T> struct A : Q {
7 enum E { e } E = e;
9 using Q::F;
10 Q::F F = f;
12 A<int> a = {};