Sign in
gnu
/
gcc
/
a8404c07e7fca388c02c39077865f7d5fa928430
/
.
/
gcc
/
testsuite
/
g++.dg
/
pr59477.C
blob: 788c751e51cf7c529fd1cc40df1c9fc8645937fb [
file
] [
log
] [
blame
]
/* { dg-do compile } */
/* { dg-options "-O" } */
struct
A
{
unsigned
*
a
,
b
;
A
(
unsigned
x
)
:
a
(),
b
(
x
)
{}
};
struct
B
{
B
(
int
);
B
(
const
B
&)
{}
};
B bar
(
B
,
B
,
A
);
int
v
;
void
foo
()
{
B c
=
0
;
bar
(
c
,
c
,
A
(
1ULL
<<
v
));
}