summaryrefslogtreecommitdiff
path: root/llvm/test/Transforms/InstCombine/2007-05-18-CastFoldBug.ll
blob: 868463ed141c71e3d221307f951518323217d995 (plain)
1
2
3
4
5
6
7
8
9
10
; RUN: opt < %s -passes=instcombine -S | grep "call.*sret"
; Make sure instcombine doesn't drop the sret attribute.

define void @blah(ptr %tmp10) {
entry:
	call void @objc_msgSend_stret(ptr sret(i16) %tmp10)
	ret void
}

declare ptr @objc_msgSend_stret(ptr, ptr, ...)