summaryrefslogtreecommitdiff
path: root/test/Transforms/DeadArgElim/dead_vaargs.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/Transforms/DeadArgElim/dead_vaargs.ll')
-rw-r--r--test/Transforms/DeadArgElim/dead_vaargs.ll12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/Transforms/DeadArgElim/dead_vaargs.ll b/test/Transforms/DeadArgElim/dead_vaargs.ll
new file mode 100644
index 000000000000..a4444bc102af
--- /dev/null
+++ b/test/Transforms/DeadArgElim/dead_vaargs.ll
@@ -0,0 +1,12 @@
+; RUN: llvm-as < %s | opt -deadargelim | llvm-dis | not grep 47
+; RUN: llvm-as < %s | opt -deadargelim | llvm-dis | not grep 1.0
+
+define i32 @bar(i32 %A) {
+ %tmp4 = tail call i32 (i32, ...)* @foo( i32 %A, i32 %A, i32 %A, i32 %A, i64 47, double 1.000000e+00 ) ; <i32> [#uses=1]
+ ret i32 %tmp4
+}
+
+define internal i32 @foo(i32 %X, ...) {
+ ret i32 %X
+}
+