Eric Christopher | 2368b6a | 2011-08-20 00:09:39 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -emit-llvm %s -o - |
2 | |||||
3 | |||||
4 | template<typename Ty> | ||||
5 | struct normal_iterator { | ||||
6 | int FIELD; | ||||
7 | }; | ||||
8 | |||||
9 | void foo(normal_iterator<int>); | ||||
10 | normal_iterator<int> baz(); | ||||
11 | |||||
12 | void bar() { | ||||
13 | foo(baz()); | ||||
14 | } | ||||
15 | |||||
16 | void *bar2() { | ||||
17 | return (void*)foo; | ||||
18 | } |