Sign in
gnu
/
gcc
/
93ac832f1846e4867aa6537f76f510fab8e3e87d
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp2a
/
paren-init31.C
blob: 3600c4993a58e1e61ef465f064ec828ec5275ae0 [
file
] [
log
] [
blame
]
// PR c++/92812
// P1975R0
// { dg-do compile { target c++20 } }
// Test we don't lifetime-extend the int temporary.
struct
A
{
const
int
&
r
;
};
A a
(
42
);
auto
a2
=
static_cast
<
A
>(
42
);
// { dg-final { scan-assembler-not "_ZGR" } }