1 ; RUN: opt < %s -passes=dfsan -dfsan-abilist=%S/Inputs/abilist.txt -S | FileCheck %s
2 target triple = "x86_64-unknown-linux-gnu"
4 ; Declare a custom varargs function.
5 declare i16 @custom_varargs(i64, ...)
7 ; CHECK-LABEL: @call_custom_varargs.dfsan
8 define void @call_custom_varargs(ptr %buf) {
9 ;; All arguments have an annotation. Check that the transformed function
10 ;; preserves each annotation.
12 ; CHECK: call zeroext i16 (i64, i8, ptr, ptr, ...)
13 ; CHECK-SAME: @__dfsw_custom_varargs
14 ; CHECK-SAME: i64 signext 200
15 ; CHECK-SAME: ptr nonnull
16 ; CHECK-SAME: i64 zeroext 20
17 ; CHECK-SAME: i32 signext 1
18 %call = call zeroext i16 (i64, ...) @custom_varargs(