Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
inherit
/
cond1.C
blob: 843c72ca308c85886cde8326c37a9e95e36c66f1 [
file
] [
log
] [
blame
]
// Origin: jason@redhat.com
// { dg-do compile }
struct
A
{
A
();
A
(
const
A
&);
int
i
;
};
struct
B
:
public
A
{
};
int
f
(
bool
b
,
A
&
ar
,
B
&
br
)
{
return
(
b
?
ar
:
br
).
i
;
}