summaryrefslogtreecommitdiffstats
path: root/tests/rust/raw_ident.rs
blob: d3ceb56540c5f6bc7f715ca74aa3a89de5121804 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#[repr(u8)]
pub enum r#Enum {
    r#a,
    r#b,
}

#[repr(C)]
pub struct r#Struct {
    r#field: r#Enum,
}

#[no_mangle]
pub extern "C" fn r#fn(r#arg: r#Struct) {
    println!("Hello world");
}

pub mod r#mod {
    #[no_mangle]
    pub static r#STATIC: r#Enum = r#Enum::r#b;
}