summaryrefslogtreecommitdiffstats
path: root/src/test/rustdoc/attributes.rs
blob: a36dadced87d71e906c79babf398039265b46c12 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#![crate_name = "foo"]

// @has foo/fn.f.html '//*[@class="rust fn"]' '#[no_mangle]'
#[no_mangle]
pub extern "C" fn f() {}

// @has foo/fn.g.html '//*[@class="rust fn"]' '#[export_name = "bar"]'
#[export_name = "bar"]
pub extern "C" fn g() {}

// @has foo/struct.Repr.html '//*[@class="item-decl"]' '#[repr(C, align(8))]'
#[repr(C, align(8))]
pub struct Repr;