Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
fp2-dev
/
platform
/
external
/
clang
/
c3384cba391f9140a46db0caa061649b633f65bc
/
.
/
test
/
SemaCXX
/
overload-binop-implicitconvert.cpp
blob: f357282a3f30b0aae4e90552053a41576584f2d4 [
file
] [
log
] [
blame
]
// RUN: clang-cc %s -emit-llvm
class
T
{};
void
print
(
const
char
*
t
);
T
&
operator
<<
(
T
&
t
,
const
char
*
c
)
{
print
(
c
);
return
t
;
}
int
main
()
{
T t
;
print
(
"foo"
);
t
<<
"foo"
;
return
0
;
}