blob: 01190d74c3486c7dd63f9c2c86cea0ce17fe7cc1 [file] [log] [blame]
Reid Kleckner5772b772014-04-24 20:14:34 +00001; RUN: llvm-as < %s | llvm-dis | FileCheck %s
Duncan P. N. Exon Smithc8eccd12014-08-19 21:08:27 +00002; RUN: verify-uselistorder < %s
Reid Kleckner5772b772014-04-24 20:14:34 +00003
4; Check that musttail and tail roundtrip.
5
6declare cc8191 void @t1_callee()
7define cc8191 void @t1() {
8; CHECK: tail call cc8191 void @t1_callee()
9 tail call cc8191 void @t1_callee()
10 ret void
11}
12
13declare cc8191 void @t2_callee()
14define cc8191 void @t2() {
15; CHECK: musttail call cc8191 void @t2_callee()
16 musttail call cc8191 void @t2_callee()
17 ret void
18}