[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / SemaTemplate / using-decl.cpp
blob1ef2a2dfaa0194847dadcafffddc20f6f0609f42
1 // RUN: %clang_cc1 -std=c++2a -verify %s
2 // expected-no-diagnostics
4 namespace UsingInGenericLambda {
5 namespace a {
6 enum { b };
8 template<typename> void c() {
9 auto d = [](auto) {
10 using a::b;
11 (void)b;
13 d(0);
15 void e() { c<int>(); }