mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 23:04:33 +00:00
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:
commit
7c69f98563
9
tests/rustdoc-json/fns/extern_c_variadic.rs
Normal file
9
tests/rustdoc-json/fns/extern_c_variadic.rs
Normal 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, ...);
|
||||
}
|
Loading…
Reference in New Issue
Block a user