llvm-6502/test/Analysis/DSGraph/SCCSimpleExample.ll
2006-08-27 22:47:14 +00:00

26 lines
412 B
LLVM

; RUN: llvm-as < %s | opt -analyze -datastructure-gc --dsgc-abort-if-merged=Y,BVal
implementation
internal void %F1(int* %X) {
%Y = alloca int
store int 4, int* %Y
%BVal = call int* %F2(int* %Y)
ret void
}
internal int* %F2(int* %A) {
%B = malloc int
store int 4, int* %B
call void %F1(int* %B)
ret int* %B
}
int %main() {
%Q = malloc int
store int 4, int* %Q
call void %F1(int* %Q)
ret int 0
}