summaryrefslogtreecommitdiff
path: root/clang/test/PCH/pack_indexing.cpp
diff options
context:
space:
mode:
authorWang Pengcheng <wangpengcheng.pp@bytedance.com>2024-05-22 11:59:41 +0800
committerWang Pengcheng <wangpengcheng.pp@bytedance.com>2024-05-22 11:59:41 +0800
commitb27266bd7ddcfda0da4be6b5b37e27f2ac99fa48 (patch)
tree649edf6a11019498313b1fa2d52cf73552ae23bb /clang/test/PCH/pack_indexing.cpp
parent68009846793e75237cb0877312fa0d6cd2d238ab (diff)
parent66c619ac3ec6f644d051914fe402c84177ab9437 (diff)
Created using spr 1.3.6-beta.1
Diffstat (limited to 'clang/test/PCH/pack_indexing.cpp')
-rw-r--r--clang/test/PCH/pack_indexing.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/test/PCH/pack_indexing.cpp b/clang/test/PCH/pack_indexing.cpp
index cf8124617b3c..1c4dac0fd9a3 100644
--- a/clang/test/PCH/pack_indexing.cpp
+++ b/clang/test/PCH/pack_indexing.cpp
@@ -10,7 +10,11 @@ using Type = U...[I];
template <int I, auto...V>
constexpr auto Var = V...[I];
+template <int I, auto...V>
+decltype(V...[I]) foo() { return V...[I]; }
+
void fn1() {
using A = Type<1, int, long, double>;
constexpr auto V = Var<2, 0, 1, 42>;
+ foo<2, 0, 1, 42>();
}