aboutsummaryrefslogtreecommitdiffstats
path: root/test/C++Frontend/2004-06-08-LateTemplateInstantiation.cpp
blob: 5d04d23ef2f10676b604a7db293ab33def71476f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17


template<typename Ty>
struct normal_iterator {  
  int FIELD;
};

void foo(normal_iterator<int>);
normal_iterator<int> baz();

void bar() {
  foo(baz());
}

void *bar2() {
  return (void*)foo;
}