llvm-6502/test/Analysis/DSGraph/2003-06-30-TopDownResolve.ll
2006-08-27 22:47:14 +00:00

25 lines
584 B
LLVM

; RUN: llvm-as < %s | opt -analyze -datastructure-gc -dsgc-dspass=td -dsgc-check-flags=X:GM
%G = internal global int 5
implementation
internal void %leaf(int *%X) {
store int 0, int* %X
ret void
}
internal void %leaf2(int* %X) { ret void }
internal void %intermediate(void(int*)* %Fn, int* %Ptr) {
call void %Fn(int* %Ptr)
ret void
}
int %main() {
call void %intermediate(void(int*)* %leaf, int* %G)
call void %intermediate(void(int*)* %leaf2, int* %G)
call void %intermediate(void(int*)* %leaf, int* %G)
call void %intermediate(void(int*)* %leaf2, int* %G)
ret int 0
}