2018-11-29 22:05:23 +00:00
|
|
|
// compile-flags: -C no-prepopulate-passes
|
|
|
|
|
2018-09-21 22:58:11 +00:00
|
|
|
#![crate_type = "lib"]
|
|
|
|
|
|
|
|
mod private {
|
|
|
|
// CHECK: @FOO =
|
|
|
|
#[no_mangle]
|
|
|
|
pub static FOO: u32 = 3;
|
|
|
|
|
|
|
|
// CHECK: @BAR =
|
|
|
|
#[export_name = "BAR"]
|
|
|
|
static BAR: u32 = 3;
|
|
|
|
|
2020-06-09 14:49:59 +00:00
|
|
|
// CHECK: void @a()
|
2018-09-21 22:58:11 +00:00
|
|
|
#[no_mangle]
|
2020-09-01 21:28:11 +00:00
|
|
|
pub extern "C" fn a() {}
|
2018-09-21 22:58:11 +00:00
|
|
|
|
2020-06-09 14:49:59 +00:00
|
|
|
// CHECK: void @b()
|
|
|
|
#[export_name = "b"]
|
2020-09-01 21:28:11 +00:00
|
|
|
extern "C" fn b() {}
|
2020-06-08 08:54:33 +00:00
|
|
|
|
2020-06-09 14:49:59 +00:00
|
|
|
// CHECK: void @c()
|
|
|
|
#[export_name = "c"]
|
2020-06-08 08:37:11 +00:00
|
|
|
#[inline]
|
2020-09-01 21:28:11 +00:00
|
|
|
extern "C" fn c() {}
|
2020-06-09 14:54:34 +00:00
|
|
|
|
2020-06-09 14:49:59 +00:00
|
|
|
// CHECK: void @d()
|
|
|
|
#[export_name = "d"]
|
|
|
|
#[inline(always)]
|
2020-09-01 21:28:11 +00:00
|
|
|
extern "C" fn d() {}
|
2018-09-21 22:58:11 +00:00
|
|
|
}
|