mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-13 23:18:51 +00:00
69134dcafa
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7010 91177308-0d34-0410-b5e6-96231b3b80d8
21 lines
368 B
LLVM
21 lines
368 B
LLVM
; RUN: analyze %s -datastructure-gc -dsgc-dspass=td -dsgc-abort-if-incomplete=X
|
|
|
|
%G = internal global int 5
|
|
|
|
implementation
|
|
|
|
internal void %leaf(int *%X) {
|
|
store int 0, 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)
|
|
ret int 0
|
|
}
|