mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-29 13:32:33 +00:00
New testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6995 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
5a54063303
commit
4f00818cd9
25
test/Analysis/DSGraph/SCCSimpleExample.ll
Normal file
25
test/Analysis/DSGraph/SCCSimpleExample.ll
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
|
||||||
|
; 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
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user