repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git]
/
clang
/
test
/
CodeGenCXX
/
2004-06-08-LateTemplateInstantiation.cpp
blob
97254c18a51a8a7bc5e08c559ac246fcc36b8d0e
1
// RUN: %clang_cc1 -emit-llvm %s -o -
2
3
4
template
<
typename Ty
>
5
struct
normal_iterator
{
6
int
FIELD
;
7
};
8
9
void
foo
(
normal_iterator
<
int
>);
10
normal_iterator
<
int
>
baz
();
11
12
void
bar
() {
13
foo
(
baz
());
14
}
15
16
void
*
bar2
() {
17
return
(
void
*)
foo
;
18
}