24 lines · cpp
1// RUN: c-index-test -test-load-source-usrs local -std=c++20 -- %s | FileCheck %s2 3// Check USRs of template specializations with structural NTTP values.4 5template <auto> struct Tpl{};6 7struct {8 int n;9} s;10 11void fn1(Tpl<1.5>);12// CHECK: fn1#$@S@Tpl>#Sd[[#HASH:]]#13void fn2(Tpl<1.7>);14// CHECK-NOT: [[#HASH]]15void fn1(Tpl<1.5>) {}16// CHECK: fn1#$@S@Tpl>#Sd[[#HASH]]#17 18void fn(Tpl<&s.n>);19// CHECK: #S*I[[#HASH:]]#20void fn(Tpl<(void*)&s.n>);21// CHECK: #S*v[[#HASH]]#22void fn(Tpl<&s.n>) {}23// CHECK: #S*I[[#HASH]]#24