llvm-project/llvm/test/C++Frontend/2004-06-08-LateTemplateInst...

20 lines
250 B
C++
Raw Normal View History

2004-11-07 06:29:57 +08:00
// RUN: %llvmgxx -S %s -o - | llvm-as -f -o /dev/null
2004-06-08 15:11:14 +08:00
template<typename Ty>
struct normal_iterator {
2004-06-08 15:11:14 +08:00
int FIELD;
};
void foo(normal_iterator<int>);
normal_iterator<int> baz();
void bar() {
foo(baz());
}
void *bar2() {
return (void*)foo;
}