From 26cae277c5435ab98b3f02bb9eb7e944a76e5eb9 Mon Sep 17 00:00:00 2001 From: Alona Enraght-Moony Date: Sat, 18 Mar 2023 17:59:02 +0000 Subject: [PATCH] Add test for `c_variadic` in rustdoc-json --- tests/rustdoc-json/fns/extern_c_variadic.rs | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 tests/rustdoc-json/fns/extern_c_variadic.rs diff --git a/tests/rustdoc-json/fns/extern_c_variadic.rs b/tests/rustdoc-json/fns/extern_c_variadic.rs new file mode 100644 index 00000000000..33bebbab5e0 --- /dev/null +++ b/tests/rustdoc-json/fns/extern_c_variadic.rs @@ -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, ...); +}