]> git.proxmox.com Git - rustc.git/blob - src/test/codegen/export-no-mangle.rs
Update unsuspicious file list
[rustc.git] / src / test / codegen / export-no-mangle.rs
1 // compile-flags: -C no-prepopulate-passes
2
3 #![crate_type = "lib"]
4
5 mod private {
6 // CHECK: @FOO =
7 #[no_mangle]
8 pub static FOO: u32 = 3;
9
10 // CHECK: @BAR =
11 #[export_name = "BAR"]
12 static BAR: u32 = 3;
13
14 // CHECK: void @a()
15 #[no_mangle]
16 pub extern "C" fn a() {}
17
18 // CHECK: void @b()
19 #[export_name = "b"]
20 extern "C" fn b() {}
21
22 // CHECK: void @c()
23 #[export_name = "c"]
24 #[inline]
25 extern "C" fn c() {}
26
27 // CHECK: void @d()
28 #[export_name = "d"]
29 #[inline(always)]
30 extern "C" fn d() {}
31 }