2023-10-04 15:04:45 -05:00
|
|
|
// https://github.com/rust-lang/rust/issues/22038
|
2023-10-04 14:08:47 -05:00
|
|
|
#![crate_name="issue_22038"]
|
|
|
|
|
2020-09-01 16:12:52 -05:00
|
|
|
extern "C" {
|
2015-04-07 16:22:55 -05:00
|
|
|
// @has issue_22038/fn.foo1.html \
|
2023-01-30 12:05:12 -06:00
|
|
|
// '//pre[@class="rust item-decl"]' 'pub unsafe extern "C" fn foo1()'
|
2015-04-07 16:22:55 -05:00
|
|
|
pub fn foo1();
|
|
|
|
}
|
|
|
|
|
|
|
|
extern "system" {
|
|
|
|
// @has issue_22038/fn.foo2.html \
|
2023-01-30 12:05:12 -06:00
|
|
|
// '//pre[@class="rust item-decl"]' 'pub unsafe extern "system" fn foo2()'
|
2015-04-07 16:22:55 -05:00
|
|
|
pub fn foo2();
|
|
|
|
}
|
|
|
|
|
|
|
|
// @has issue_22038/fn.bar.html \
|
2023-01-30 12:05:12 -06:00
|
|
|
// '//pre[@class="rust item-decl"]' 'pub extern "C" fn bar()'
|
2020-09-01 16:12:52 -05:00
|
|
|
pub extern "C" fn bar() {}
|
2015-04-07 16:22:55 -05:00
|
|
|
|
|
|
|
// @has issue_22038/fn.baz.html \
|
2023-01-30 12:05:12 -06:00
|
|
|
// '//pre[@class="rust item-decl"]' 'pub extern "system" fn baz()'
|
2015-04-07 16:22:55 -05:00
|
|
|
pub extern "system" fn baz() {}
|