1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-30 15:32:52 +01:00
llvm-mirror/test/Regression/Analysis/DSGraph/2003-06-30-TopDownResolve.ll
Chris Lattner f9a29d50df Update to use more modern graph checker
llvm-svn: 7332
2003-07-25 21:09:20 +00:00

25 lines
567 B
LLVM

; RUN: analyze %s -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
}