1; RUN: opt < %s -passes=dfsan -dfsan-abilist=%S/Inputs/abilist.txt -S | FileCheck %s 2target triple = "x86_64-unknown-linux-gnu" 3 4; Declare a custom varargs function. 5declare i16 @custom_varargs(i64, ...) 6 7; CHECK-LABEL: @call_custom_varargs.dfsan 8define void @call_custom_varargs(ptr %buf) { 9 ;; All arguments have an annotation. Check that the transformed function 10 ;; preserves each annotation. 11 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( 19 i64 signext 200, 20 ptr nonnull %buf, 21 i64 zeroext 20, 22 i32 signext 1 23 ) 24 ret void 25} 26