xref: /llvm-project/clang/test/SemaTemplate/gh57362.cpp (revision f8a37a6ce67470f9f6b3a4dacb65c637c2958b8d)
1 // RUN: %clang_cc1 -fsyntax-only -verify -std=c++20 -Wpre-c++17-compat %s
2 // expected-no-diagnostics
3 
4 namespace GH57362 {
5 template <int num>
6 class TemplateClass {};
7 
8 template <TemplateClass nttp> // ok, no diagnostic expected
func()9 void func() {}
10 }
11