repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[clang] Handle __declspec() attributes in using
[llvm-project.git]
/
clang
/
test
/
CodeGenCXX
/
overload-binop-implicitconvert.cpp
blob
0eb7a0609612c70d9d41464d8a07c88972f9d646
1
// RUN: %clang_cc1 %s -emit-llvm-only
2
class
T
3
{};
4
5
void
print
(
const char
*
t
);
6
7
T
&
operator
<< (
T
&
t
,
const char
*
c
)
8
{
9
print
(
c
);
10
return
t
;
11
}
12
13
14
int
main
()
15
{
16
T t
;
17
print
(
"foo"
);
18
t
<<
"foo"
;
19
20
return
0
;
21
}
22