2018-11-29 16:05:23 -06:00
|
|
|
// compile-flags: -C no-prepopulate-passes
|
|
|
|
|
2018-09-21 17:58:11 -05: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 09:49:59 -05:00
|
|
|
// CHECK: void @a()
|
2018-09-21 17:58:11 -05:00
|
|
|
#[no_mangle]
|
2020-09-01 16:28:11 -05:00
|
|
|
pub extern "C" fn a() {}
|
2018-09-21 17:58:11 -05:00
|
|
|
|
2020-06-09 09:49:59 -05:00
|
|
|
// CHECK: void @b()
|
|
|
|
#[export_name = "b"]
|
2020-09-01 16:28:11 -05:00
|
|
|
extern "C" fn b() {}
|
2020-06-08 03:54:33 -05:00
|
|
|
|
2020-06-09 09:49:59 -05:00
|
|
|
// CHECK: void @c()
|
|
|
|
#[export_name = "c"]
|
2020-06-08 03:37:11 -05:00
|
|
|
#[inline]
|
2020-09-01 16:28:11 -05:00
|
|
|
extern "C" fn c() {}
|
2020-06-09 09:54:34 -05:00
|
|
|
|
2020-06-09 09:49:59 -05:00
|
|
|
// CHECK: void @d()
|
|
|
|
#[export_name = "d"]
|
|
|
|
#[inline(always)]
|
2020-09-01 16:28:11 -05:00
|
|
|
extern "C" fn d() {}
|
2018-09-21 17:58:11 -05:00
|
|
|
}
|