Rollup merge of #109319 - aDotInTheVoid:rdj-variadic-test, r=notriddle

Add test for `c_variadic` in rustdoc-json

Helps with #81359
This commit is contained in:
Matthias Krüger 2023-03-20 07:10:31 +01:00 committed by GitHub
commit 7c69f98563
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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, ...);
}