Files
rust/src/test/codegen/staticlib-external-inline-fns.rs

24 lines
385 B
Rust
Raw Normal View History

2020-06-08 09:37:11 +01:00
// compile-flags: -C no-prepopulate-passes
#![crate_type = "staticlib"]
// CHECK: define void @a()
#[no_mangle]
#[inline]
pub extern "C" fn a() {}
// CHECK: define void @b()
#[export_name = "b"]
#[inline]
pub extern "C" fn b() {}
// CHECK: define void @c()
#[no_mangle]
#[inline]
extern "C" fn c() {}
// CHECK: define void @d()
#[export_name = "d"]
#[inline]
extern "C" fn d() {}