Sign in
gnu
/
gcc.git
/
refs/heads/master
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp26
/
pack-indexing16.C
blob: 92ade86d06b9d6dd31c0fcecf21a5c2a98eecb73 [
file
] [
log
] [
blame
]
// { dg-do compile { target c++26 } }
int
i
;
constexpr
int
idx
()
{
if
consteval
{
return
0
;
}
else
{
return
i
;
}
}
template
<
int
...
Ns
>
int
first
()
{
return
Ns
...[
idx
()];
}
int
main
()
{
return
first
<
0
,
1
,
2
>();
}