[llvm-commits] CVS: llvm/test/Regression/Transforms/SimplifyLibCalls/2005-05-20-sprintf-crash.ll
Chris Lattner
lattner at cs.uiuc.edu
Fri May 20 15:25:55 PDT 2005
Changes in directory llvm/test/Regression/Transforms/SimplifyLibCalls:
2005-05-20-sprintf-crash.ll added (r1.1)
---
Log message:
new testcase
---
Diffs of the changes: (+10 -0)
2005-05-20-sprintf-crash.ll | 10 ++++++++++
1 files changed, 10 insertions(+)
Index: llvm/test/Regression/Transforms/SimplifyLibCalls/2005-05-20-sprintf-crash.ll
diff -c /dev/null llvm/test/Regression/Transforms/SimplifyLibCalls/2005-05-20-sprintf-crash.ll:1.1
*** /dev/null Fri May 20 17:25:54 2005
--- llvm/test/Regression/Transforms/SimplifyLibCalls/2005-05-20-sprintf-crash.ll Fri May 20 17:25:44 2005
***************
*** 0 ****
--- 1,10 ----
+ ; RUN: llvm-as < %s | opt -simplify-libcalls -disable-output
+
+ %G = constant [3 x sbyte] c"%s\00"
+
+ declare int %sprintf(sbyte*, sbyte*, ...)
+
+ void %foo(sbyte*%P, int *%X) {
+ call int(sbyte*,sbyte*, ...)* %sprintf(sbyte* %P, sbyte* getelementptr ([3 x sbyte]* %G, int 0, int 0), int* %X)
+ ret void
+ }
More information about the llvm-commits
mailing list