Shih-wei Liao | f8fd82b | 2010-02-10 11:10:31 -0800 | [diff] [blame^] | 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 |