2020-06-08 03:37:11 -05:00
|
|
|
//@ compile-flags: -C no-prepopulate-passes
|
|
|
|
|
|
|
|
#![crate_type = "cdylib"]
|
|
|
|
|
2021-03-27 17:11:24 -05:00
|
|
|
// CHECK: define{{( dso_local)?}} void @a()
|
2020-06-08 03:37:11 -05:00
|
|
|
#[no_mangle]
|
|
|
|
#[inline]
|
|
|
|
pub extern "C" fn a() {}
|
|
|
|
|
2021-03-27 17:11:24 -05:00
|
|
|
// CHECK: define{{( dso_local)?}} void @b()
|
2020-06-08 03:37:11 -05:00
|
|
|
#[export_name = "b"]
|
|
|
|
#[inline]
|
|
|
|
pub extern "C" fn b() {}
|
|
|
|
|
2021-03-27 17:11:24 -05:00
|
|
|
// CHECK: define{{( dso_local)?}} void @c()
|
2020-06-08 03:37:11 -05:00
|
|
|
#[no_mangle]
|
|
|
|
#[inline]
|
|
|
|
extern "C" fn c() {}
|
|
|
|
|
2021-03-27 17:11:24 -05:00
|
|
|
// CHECK: define{{( dso_local)?}} void @d()
|
2020-06-08 03:37:11 -05:00
|
|
|
#[export_name = "d"]
|
|
|
|
#[inline]
|
|
|
|
extern "C" fn d() {}
|
2020-06-09 09:49:59 -05:00
|
|
|
|
2021-03-27 17:11:24 -05:00
|
|
|
// CHECK: define{{( dso_local)?}} void @e()
|
2020-06-09 09:49:59 -05:00
|
|
|
#[no_mangle]
|
|
|
|
#[inline(always)]
|
|
|
|
pub extern "C" fn e() {}
|
|
|
|
|
2021-03-27 17:11:24 -05:00
|
|
|
// CHECK: define{{( dso_local)?}} void @f()
|
2020-06-09 09:49:59 -05:00
|
|
|
#[export_name = "f"]
|
|
|
|
#[inline(always)]
|
|
|
|
pub extern "C" fn f() {}
|
|
|
|
|
2021-03-27 17:11:24 -05:00
|
|
|
// CHECK: define{{( dso_local)?}} void @g()
|
2020-06-09 09:49:59 -05:00
|
|
|
#[no_mangle]
|
|
|
|
#[inline(always)]
|
|
|
|
extern "C" fn g() {}
|
|
|
|
|
2021-03-27 17:11:24 -05:00
|
|
|
// CHECK: define{{( dso_local)?}} void @h()
|
2020-06-09 09:49:59 -05:00
|
|
|
#[export_name = "h"]
|
|
|
|
#[inline(always)]
|
|
|
|
extern "C" fn h() {}
|