aboutsummaryrefslogtreecommitdiff
path: root/test/FrontendC++/2004-06-08-LateTemplateInstantiation.cpp
blob: 4ad4c7d061adbffbbec6ae69947792e29de44287 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// RUN: %llvmgxx -S %s -o - | llvm-as -o /dev/null



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;
}