1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 03:33:20 +01:00
llvm-mirror/test/Regression/Analysis/DSGraph/SCCSimpleExample.ll
Chris Lattner 9fc21749e1 New testcase
llvm-svn: 6995
2003-06-30 03:25:53 +00:00

26 lines
395 B
LLVM

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