llvm.org GIT mirror llvm / 69134dc
New testcase git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7010 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 16 years ago
1 changed file(s) with 20 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 ; RUN: analyze %s -datastructure-gc -dsgc-dspass=td -dsgc-abort-if-incomplete=X
1
2 %G = internal global int 5
3
4 implementation
5
6 internal void %leaf(int *%X) {
7 store int 0, int* %X
8 ret void
9 }
10
11 internal void %intermediate(void(int*)* %Fn, int* %Ptr) {
12 call void %Fn(int* %Ptr)
13 ret void
14 }
15
16 int %main() {
17 call void %intermediate(void(int*)* %leaf, int* %G)
18 ret int 0
19 }