[llvm-commits] CVS: llvm/test/Regression/Analysis/DSGraph/SCCSimpleExample.ll

Chris Lattner lattner at cs.uiuc.edu
Sun Jun 29 22:27:03 PDT 2003


Changes in directory llvm/test/Regression/Analysis/DSGraph:

SCCSimpleExample.ll added (r1.1)

---
Log message:

New testcase


---
Diffs of the changes:

Index: llvm/test/Regression/Analysis/DSGraph/SCCSimpleExample.ll
diff -c /dev/null llvm/test/Regression/Analysis/DSGraph/SCCSimpleExample.ll:1.1
*** /dev/null	Sun Jun 29 22:26:03 2003
--- llvm/test/Regression/Analysis/DSGraph/SCCSimpleExample.ll	Sun Jun 29 22:25:53 2003
***************
*** 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
+ }





More information about the llvm-commits mailing list