repo.or.cz
/
llvm
/
zpu.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fixed some bugs.
[llvm/zpu.git]
/
test
/
FrontendC++
/
2004-06-08-LateTemplateInstantiation.cpp
blob
4ad4c7d061adbffbbec6ae69947792e29de44287
1
// RUN: %llvmgxx -S %s -o - | llvm-as -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
}