diff options
| author | Nathan Corbyn <me@nathancorbyn.com> | 2020-06-09 15:49:59 +0100 |
|---|---|---|
| committer | Nathan Corbyn <me@nathancorbyn.com> | 2020-06-15 09:40:56 +0100 |
| commit | ee810a75e41368387918759ed191657f05650f05 (patch) | |
| tree | 94cb432f7a4afaefc451bcde7a506bfc8918b765 /src/test/codegen/cdylib-external-inline-fns.rs | |
| parent | d23bedd13d70597a7db70ef5ea549fc7a4063d10 (diff) | |
| download | rust-ee810a75e41368387918759ed191657f05650f05.tar.gz rust-ee810a75e41368387918759ed191657f05650f05.zip | |
Fix exports with `#[inline(always)]`
Diffstat (limited to 'src/test/codegen/cdylib-external-inline-fns.rs')
| -rw-r--r-- | src/test/codegen/cdylib-external-inline-fns.rs | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/test/codegen/cdylib-external-inline-fns.rs b/src/test/codegen/cdylib-external-inline-fns.rs index 58f806b5a1f..519be6b6a99 100644 --- a/src/test/codegen/cdylib-external-inline-fns.rs +++ b/src/test/codegen/cdylib-external-inline-fns.rs @@ -21,3 +21,23 @@ extern "C" fn c() {} #[export_name = "d"] #[inline] extern "C" fn d() {} + +// CHECK: define void @e() +#[no_mangle] +#[inline(always)] +pub extern "C" fn e() {} + +// CHECK: define void @f() +#[export_name = "f"] +#[inline(always)] +pub extern "C" fn f() {} + +// CHECK: define void @g() +#[no_mangle] +#[inline(always)] +extern "C" fn g() {} + +// CHECK: define void @h() +#[export_name = "h"] +#[inline(always)] +extern "C" fn h() {} |
