Add test for c_variadic in rustdoc-json

This commit is contained in:
Alona Enraght-Moony 2023-03-18 17:59:02 +00:00
parent 0058748944
commit 26cae277c5

View File

@ -0,0 +1,9 @@
#![feature(no_core)]
#![no_core]
extern "C" {
// @is "$.index[*][?(@.name == 'not_variadic')].inner.decl.c_variadic" false
pub fn not_variadic(_: i32);
// @is "$.index[*][?(@.name == 'variadic')].inner.decl.c_variadic" true
pub fn variadic(_: i32, ...);
}