Test that a call to a trampoline is turned into a call to
[oota-llvm.git] / test / C++Frontend / 2004-06-08-LateTemplateInstantiation.cpp
1 // RUN: %llvmgxx -S %s -o - | llvm-as -f -o /dev/null
2
3
4
5 template<typename Ty>
6 struct normal_iterator {
7   int FIELD;
8 };
9
10 void foo(normal_iterator<int>);
11 normal_iterator<int> baz();
12
13 void bar() {
14   foo(baz());
15 }
16
17 void *bar2() {
18   return (void*)foo;
19 }