bolt/deps/llvm-18.1.8/llvm/test/Assembler/musttail.ll
2025-02-14 19:21:04 +01:00

14 lines
363 B
LLVM

; RUN: llvm-as < %s | llvm-dis | FileCheck %s
; Check that the ellipsis round trips.
%struct.A = type { i32 }
declare ptr @f(ptr, ...)
define ptr @f_thunk(ptr %this, ...) {
%rv = musttail call ptr (ptr, ...) @f(ptr %this, ...)
ret ptr %rv
}
; CHECK-LABEL: define ptr @f_thunk(ptr %this, ...)
; CHECK: %rv = musttail call ptr (ptr, ...) @f(ptr %this, ...)