Debian Codegraph @

gcc/testsuite/g++.dg/modules/pack-index-1_b.C

raw
1 // { dg-additional-options { -std=c++26 -fmodules-ts } }
2
3 import packing1;
4
5 int
6 main ()
7 {
8 using U = Type<1, char, int, float>;
9 using U = int;
10
11 U r = foo<2, 0, 1, 42>();
12
13 constexpr auto V = Var<2, 0, 1, 42>;
14 static_assert (V == 42);
15 }