Sign in
gnu
/
gcc
/
refs/tags/basepoints/gcc-13
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp23
/
auto-fncast9.C
blob: 12a0dcece7597afe5ecb749b2ad4ebc0f29a7645 [
file
] [
log
] [
blame
]
// PR c++/103401
// { dg-do compile { target c++23 } }
void
f1
(
decltype
(
new
auto
{
0
}));
void
f2
(
decltype
(
new
int
{
0
}));
void
g
()
{
int
i
;
void
f3
(
decltype
(
new
auto
{
0
}));
void
f4
(
decltype
(
new
int
{
0
}));
f1
(&
i
);
f2
(&
i
);
f3
(&
i
);
f4
(&
i
);
}