]> git.lizzy.rs Git - rust.git/blob - tests/rustdoc-json/fn_pointer/abi.rs
Rollup merge of #103236 - tspiteri:redoc-int-adc-sbb, r=m-ou-se
[rust.git] / tests / rustdoc-json / fn_pointer / abi.rs
1 // ignore-tidy-linelength
2
3 #![feature(abi_vectorcall)]
4 #![feature(c_unwind)]
5
6 // @is "$.index[*][?(@.name=='AbiRust')].inner.type.inner.header.abi" \"Rust\"
7 pub type AbiRust = fn();
8
9 // @is "$.index[*][?(@.name=='AbiC')].inner.type.inner.header.abi" '{"C": {"unwind": false}}'
10 pub type AbiC = extern "C" fn();
11
12 // @is "$.index[*][?(@.name=='AbiSystem')].inner.type.inner.header.abi" '{"System": {"unwind": false}}'
13 pub type AbiSystem = extern "system" fn();
14
15 // @is "$.index[*][?(@.name=='AbiCUnwind')].inner.type.inner.header.abi" '{"C": {"unwind": true}}'
16 pub type AbiCUnwind = extern "C-unwind" fn();
17
18 // @is "$.index[*][?(@.name=='AbiSystemUnwind')].inner.type.inner.header.abi" '{"System": {"unwind": true}}'
19 pub type AbiSystemUnwind = extern "system-unwind" fn();
20
21 // @is "$.index[*][?(@.name=='AbiVecorcall')].inner.type.inner.header.abi.Other" '"\"vectorcall\""'
22 pub type AbiVecorcall = extern "vectorcall" fn();
23
24 // @is "$.index[*][?(@.name=='AbiVecorcallUnwind')].inner.type.inner.header.abi.Other" '"\"vectorcall-unwind\""'
25 pub type AbiVecorcallUnwind = extern "vectorcall-unwind" fn();