[OptTable] Fix typo VALUE => VALUES (NFCI) (#121523)
[llvm-project.git] / clang / test / Index / USR / structural-value-tpl-arg.cpp
blob8130012451691cfa95a6f466c10af7aae484deb1
1 // RUN: c-index-test -test-load-source-usrs local -std=c++20 -- %s | FileCheck %s
3 // Check USRs of template specializations with structural NTTP values.
5 template <auto> struct Tpl{};
7 struct {
8 int n;
9 } s;
11 void fn1(Tpl<1.5>);
12 // CHECK: fn1#$@S@Tpl>#Sd[[#HASH:]]#
13 void fn2(Tpl<1.7>);
14 // CHECK-NOT: [[#HASH]]
15 void fn1(Tpl<1.5>) {}
16 // CHECK: fn1#$@S@Tpl>#Sd[[#HASH]]#
18 void fn(Tpl<&s.n>);
19 // CHECK: #S*I[[#HASH:]]#
20 void fn(Tpl<(void*)&s.n>);
21 // CHECK: #S*v[[#HASH]]#
22 void fn(Tpl<&s.n>) {}
23 // CHECK: #S*I[[#HASH]]#