brintos

brintos / llvm-project-archived public Read only

0
0
Text · 212 B · 0eb7a06 Raw
23 lines · cpp
1// RUN: %clang_cc1 %s -emit-llvm-only2class T3{};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  23