Sign in
gnu
/
gcc
/
e8cbc2e256b3e9568288594d9f90a2015d31b55a
/
.
/
gcc
/
testsuite
/
g++.old-deja
/
g++.jason
/
conversion4.C
blob: 7caca196d0af06526af520025e3c3903dd1e9280 [
file
] [
log
] [
blame
]
// Build don't link:
struct
A
{
A
(
int
);
};
struct
B
{
operator
int
()
{
return
1
;
}
};
void
f
(
const
A
&);
void
g
()
{
B b
;
f
((
A
)
b
);
f
(
A
(
b
));
// gets bogus error - functional cast treated differently from C style
}