2020-09-01 21:12:52 +00:00
|
|
|
extern "C" {
|
2015-04-07 21:22:55 +00:00
|
|
|
// @has issue_22038/fn.foo1.html \
|
2023-01-30 18:05:12 +00:00
|
|
|
// '//pre[@class="rust item-decl"]' 'pub unsafe extern "C" fn foo1()'
|
2015-04-07 21:22:55 +00:00
|
|
|
pub fn foo1();
|
|
|
|
}
|
|
|
|
|
|
|
|
extern "system" {
|
|
|
|
// @has issue_22038/fn.foo2.html \
|
2023-01-30 18:05:12 +00:00
|
|
|
// '//pre[@class="rust item-decl"]' 'pub unsafe extern "system" fn foo2()'
|
2015-04-07 21:22:55 +00:00
|
|
|
pub fn foo2();
|
|
|
|
}
|
|
|
|
|
|
|
|
// @has issue_22038/fn.bar.html \
|
2023-01-30 18:05:12 +00:00
|
|
|
// '//pre[@class="rust item-decl"]' 'pub extern "C" fn bar()'
|
2020-09-01 21:12:52 +00:00
|
|
|
pub extern "C" fn bar() {}
|
2015-04-07 21:22:55 +00:00
|
|
|
|
|
|
|
// @has issue_22038/fn.baz.html \
|
2023-01-30 18:05:12 +00:00
|
|
|
// '//pre[@class="rust item-decl"]' 'pub extern "system" fn baz()'
|
2015-04-07 21:22:55 +00:00
|
|
|
pub extern "system" fn baz() {}
|