summaryrefslogtreecommitdiff
path: root/clang/test/PCH/pack_indexing.cpp
diff options
context:
space:
mode:
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>();
}