2015-04-07 14:22:55 -07:00
|
|
|
extern {
|
|
|
|
// @has issue_22038/fn.foo1.html \
|
2017-05-15 00:52:17 +01:00
|
|
|
// '//*[@class="rust fn"]' 'pub unsafe extern "C" fn foo1()'
|
2015-04-07 14:22:55 -07:00
|
|
|
pub fn foo1();
|
|
|
|
}
|
|
|
|
|
|
|
|
extern "system" {
|
|
|
|
// @has issue_22038/fn.foo2.html \
|
|
|
|
// '//*[@class="rust fn"]' 'pub unsafe extern "system" fn foo2()'
|
|
|
|
pub fn foo2();
|
|
|
|
}
|
|
|
|
|
|
|
|
// @has issue_22038/fn.bar.html \
|
2017-05-15 00:52:17 +01:00
|
|
|
// '//*[@class="rust fn"]' 'pub extern "C" fn bar()'
|
2015-04-07 14:22:55 -07:00
|
|
|
pub extern fn bar() {}
|
|
|
|
|
|
|
|
// @has issue_22038/fn.baz.html \
|
|
|
|
// '//*[@class="rust fn"]' 'pub extern "system" fn baz()'
|
|
|
|
pub extern "system" fn baz() {}
|