Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
clang
/
60d62c29d260596454aaf4cb50cbc756ac08875e
/
.
/
test
/
SemaCXX
/
converting-constructor.cpp
blob: 4bcd5aa01ec3bbb0618eae01b64eb3fcd5a12321 [
file
] [
log
] [
blame
]
// RUN: clang -fsyntax-only %s
class
Z
{
};
class
Y
{
public
:
Y
(
const
Z
&);
};
class
X
{
public
:
X
(
int
);
X
(
const
Y
&);
};
void
f
(
X
);
void
g
(
short
s
,
Y y
,
Z z
)
{
f
(
s
);
f
(
1.0f
);
f
(
y
);
f
(
z
);
// expected-error{{incompatible}}
}