mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-17 03:30:28 +00:00
4446617ae2
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7332 91177308-0d34-0410-b5e6-96231b3b80d8
25 lines
567 B
LLVM
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
|
|
}
|