[llvm-commits] CVS: llvm/test/Regression/Transforms/Inline/cfg_preserve_test.ll
Chris Lattner
lattner at cs.uiuc.edu
Sat Aug 23 23:07:00 PDT 2003
Changes in directory llvm/test/Regression/Transforms/Inline:
cfg_preserve_test.ll added (r1.1)
---
Log message:
new testcase
---
Diffs of the changes:
Index: llvm/test/Regression/Transforms/Inline/cfg_preserve_test.ll
diff -c /dev/null llvm/test/Regression/Transforms/Inline/cfg_preserve_test.ll:1.1
*** /dev/null Sat Aug 23 23:06:14 2003
--- llvm/test/Regression/Transforms/Inline/cfg_preserve_test.ll Sat Aug 23 23:06:04 2003
***************
*** 0 ****
--- 1,15 ----
+ ; This test ensures that inlining an "empty" function does not destroy the CFG
+ ;
+ ; RUN: as < %s | opt -inline | dis | not grep br
+
+ int %func(int %i) {
+ ret int %i
+ }
+
+ declare void %bar()
+
+ int %main(int %argc) {
+ Entry:
+ %X = call int %func(int 7)
+ ret int %X
+ }
More information about the llvm-commits
mailing list