Sign in
gnu
/
gcc
/
d769c5040874bf9546f2524f3f1d2a894165f92a
/
.
/
gcc
/
testsuite
/
g++.dg
/
ipa
/
pr77905.C
blob: 0f73d50addc2a6f99731468c6843491b1c11ea8c [
file
] [
log
] [
blame
]
// PR ipa/77905
// { dg-do compile }
// { dg-options "-O2" }
struct
A
{
A
(
int
);
};
struct
B
:
A
{
B
();
}
A
;
struct
C
:
virtual
A
{
C
(
int
);
};
A
::
A
(
int
x
)
{
if
(
x
)
A
(
0
);
}
B
::
B
()
:
A
(
1
)
{}
C
::
C
(
int
)
:
A
(
1
)
{}