summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/Transforms/InstCombine/cast.ll7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/Transforms/InstCombine/cast.ll b/test/Transforms/InstCombine/cast.ll
index b6a47b83ee..8ee4cc7433 100644
--- a/test/Transforms/InstCombine/cast.ll
+++ b/test/Transforms/InstCombine/cast.ll
@@ -66,3 +66,10 @@ short %test10(short %A) {
ret short %c2
}
+declare void %varargs(int, ...)
+
+void %test11(int* %P) {
+ %c = cast int* %P to short*
+ call void(int, ...)* %varargs(int 5, short* %c)
+ ret void
+}