[llvm-commits] CVS: llvm/test/Regression/Transforms/LevelRaise/2003-05-01-CallCast.ll
Chris Lattner
lattner at cs.uiuc.edu
Thu May 1 16:03:01 PDT 2003
Changes in directory llvm/test/Regression/Transforms/LevelRaise:
2003-05-01-CallCast.ll added (r1.1)
---
Log message:
New testcase: do not "raise" a call that is not through a function pointer!
---
Diffs of the changes:
Index: llvm/test/Regression/Transforms/LevelRaise/2003-05-01-CallCast.ll
diff -c /dev/null llvm/test/Regression/Transforms/LevelRaise/2003-05-01-CallCast.ll:1.1
*** /dev/null Thu May 1 16:02:45 2003
--- llvm/test/Regression/Transforms/LevelRaise/2003-05-01-CallCast.ll Thu May 1 16:02:35 2003
***************
*** 0 ****
--- 1,11 ----
+ ; RUN: if as < %s | opt -raise | dis | grep cast
+ ; RUN: then exit 1
+ ; RUN: else exit 0
+ ; RUN: fi
+
+ void %test(...) { ret void }
+
+ void %caller() {
+ call void (...) *%test()
+ ret void
+ }
More information about the llvm-commits
mailing list