How can i use @_silgen_name in Swift to Call C variadic function

?Hello, i working to call c function in Swift and i use @_silgen_name to call c variadic function


this is my code


test.h
void swiftValist(va_list inputs);


test.c
void swiftValist(va_list inputs) {
    vprintf("%s\n", inputs);
}

some.swift
@_silgen_name("swiftValist")
internal func swiftValistTest1(_ inputs: CVaListPointer!)


when i call swiftValistTest1(getVaList(["11111111", "22222"])) and there are crash by

Thread 1: EXC_BAD_ACCESS (code=EXC_I386_GPFLT)


does there @_silgen_name cannot call c variadic function?

thank everyone to help my to fix this problem


you can download crash code from github https://github.com/HanCongYang/SwiftCallCVaribleCrashCode