diff options
| author | Wang Pengcheng <wangpengcheng.pp@bytedance.com> | 2024-05-22 11:59:41 +0800 |
|---|---|---|
| committer | Wang Pengcheng <wangpengcheng.pp@bytedance.com> | 2024-05-22 11:59:41 +0800 |
| commit | b27266bd7ddcfda0da4be6b5b37e27f2ac99fa48 (patch) | |
| tree | 649edf6a11019498313b1fa2d52cf73552ae23bb /clang/test/PCH/pack_indexing.cpp | |
| parent | 68009846793e75237cb0877312fa0d6cd2d238ab (diff) | |
| parent | 66c619ac3ec6f644d051914fe402c84177ab9437 (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.cpp | 4 |
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>(); } |
