2017-02-08 21:15:20 +00:00
|
|
|
#![crate_name = "foo"]
|
|
|
|
|
2021-04-12 23:03:17 -07:00
|
|
|
// @has foo/fn.f.html '//*[@class="rust fn"]' '#[no_mangle]'
|
2017-02-08 21:15:20 +00:00
|
|
|
#[no_mangle]
|
|
|
|
pub extern "C" fn f() {}
|
|
|
|
|
2021-04-12 23:03:17 -07:00
|
|
|
// @has foo/fn.g.html '//*[@class="rust fn"]' '#[export_name = "bar"]'
|
2017-02-08 21:15:20 +00:00
|
|
|
#[export_name = "bar"]
|
|
|
|
pub extern "C" fn g() {}
|
|
|
|
|
2022-09-19 12:17:05 -07:00
|
|
|
// @has foo/struct.Repr.html '//*[@class="item-decl"]' '#[repr(C, align(8))]'
|
2020-03-03 23:41:32 +00:00
|
|
|
#[repr(C, align(8))]
|
|
|
|
pub struct Repr;
|