[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / SemaTemplate / gh57362.cpp
blob87bd8da0a91dadba7685b0e3afca650f6100b970
1 // RUN: %clang_cc1 -fsyntax-only -verify -std=c++20 -Wpre-c++17-compat %s
2 // expected-no-diagnostics
4 namespace GH57362 {
5 template <int num>
6 class TemplateClass {};
8 template <TemplateClass nttp> // ok, no diagnostic expected
9 void func() {}