gcc/testsuite/g++.dg/modules/pack-index-1_a.C
raw| 1 | // { dg-module-do run } |
| 2 | // { dg-additional-options { -std=c++26 -fmodules-ts } } |
| 3 | |
| 4 | export module packing1; |
| 5 | // { dg-module-cmi "packing1" } |
| 6 | |
| 7 | export template<int I, typename... Ts> |
| 8 | using Type = Ts...[I]; |
| 9 | |
| 10 | export template<int I, auto... Ts> |
| 11 | constexpr auto Var = Ts...[I]; |
| 12 | |
| 13 | export template <int I, auto...Ts> |
| 14 | int |
| 15 | foo () |
| 16 | { |
| 17 | return Ts...[I]; |
| 18 | } |