blob: f357282a3f30b0aae4e90552053a41576584f2d4 [file] [log] [blame]
Douglas Gregorc3384cb2009-08-26 17:08:25 +00001// RUN: clang-cc %s -emit-llvm
2class T
3{};
4
5void print(const char *t);
6
7T& operator<< (T& t,const char* c)
8{
9 print(c);
10 return t;
11}
12
13
14int main()
15{
16 T t;
17 print("foo");
18 t<<"foo";
19
20 return 0;
21}
22