1*f4a2713aSLionel Sambuc // RUN: %clang_cc1 %s -emit-llvm-only 2*f4a2713aSLionel Sambuc class T 3*f4a2713aSLionel Sambuc {}; 4*f4a2713aSLionel Sambuc 5*f4a2713aSLionel Sambuc void print(const char *t); 6*f4a2713aSLionel Sambuc operator <<(T & t,const char * c)7*f4a2713aSLionel SambucT& operator<< (T& t,const char* c) 8*f4a2713aSLionel Sambuc { 9*f4a2713aSLionel Sambuc print(c); 10*f4a2713aSLionel Sambuc return t; 11*f4a2713aSLionel Sambuc } 12*f4a2713aSLionel Sambuc 13*f4a2713aSLionel Sambuc main()14*f4a2713aSLionel Sambucint main() 15*f4a2713aSLionel Sambuc { 16*f4a2713aSLionel Sambuc T t; 17*f4a2713aSLionel Sambuc print("foo"); 18*f4a2713aSLionel Sambuc t<<"foo"; 19*f4a2713aSLionel Sambuc 20*f4a2713aSLionel Sambuc return 0; 21*f4a2713aSLionel Sambuc } 22*f4a2713aSLionel Sambuc 23