blob: 0eb7a0609612c70d9d41464d8a07c88972f9d646 [file] [log] [blame]
Daniel Dunbara5728872009-12-15 20:14:24 +00001// RUN: %clang_cc1 %s -emit-llvm-only
Douglas Gregorc3384cb2009-08-26 17:08:25 +00002class 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