Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 7c69f98

Browse files
authoredMar 20, 2023
Rollup merge of rust-lang#109319 - aDotInTheVoid:rdj-variadic-test, r=notriddle
Add test for `c_variadic` in rustdoc-json Helps with rust-lang#81359
2 parents 5d3f460 + 26cae27 commit 7c69f98

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed
 
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#![feature(no_core)]
2+
#![no_core]
3+
4+
extern "C" {
5+
// @is "$.index[*][?(@.name == 'not_variadic')].inner.decl.c_variadic" false
6+
pub fn not_variadic(_: i32);
7+
// @is "$.index[*][?(@.name == 'variadic')].inner.decl.c_variadic" true
8+
pub fn variadic(_: i32, ...);
9+
}

0 commit comments

Comments
 (0)
Failed to load comments.