xref: /llvm-project/llvm/test/Assembler/musttail.ll (revision 75a479221b72c8b4827470485949cebf67d1c967)
1; RUN: llvm-as < %s | llvm-dis | FileCheck %s
2
3; Check that the ellipsis round trips.
4
5%struct.A = type { i32 }
6
7declare ptr @f(ptr, ...)
8
9define ptr @f_thunk(ptr %this, ...) {
10  %rv = musttail call ptr (ptr, ...) @f(ptr %this, ...)
11  ret ptr %rv
12}
13; CHECK-LABEL: define ptr @f_thunk(ptr %this, ...)
14; CHECK: %rv = musttail call ptr (ptr, ...) @f(ptr %this, ...)
15