llvm-6502/test/C++Frontend/2004-06-08-LateTemplateInstantiation.cpp
Chris Lattner 2917ca87f7 New testcase for PR355
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14062 91177308-0d34-0410-b5e6-96231b3b80d8
2004-06-08 07:11:14 +00:00

18 lines
197 B
C++

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