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/export-no-mangle.rs | |
| parent | d23bedd13d70597a7db70ef5ea549fc7a4063d10 (diff) | |
| download | rust-ee810a75e41368387918759ed191657f05650f05.tar.gz rust-ee810a75e41368387918759ed191657f05650f05.zip | |
Fix exports with `#[inline(always)]`
Diffstat (limited to 'src/test/codegen/export-no-mangle.rs')
| -rw-r--r-- | src/test/codegen/export-no-mangle.rs | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/src/test/codegen/export-no-mangle.rs b/src/test/codegen/export-no-mangle.rs index a52fac37021..11427ae3882 100644 --- a/src/test/codegen/export-no-mangle.rs +++ b/src/test/codegen/export-no-mangle.rs @@ -11,16 +11,21 @@ mod private { #[export_name = "BAR"] static BAR: u32 = 3; - // CHECK: void @foo() + // CHECK: void @a() #[no_mangle] - pub extern fn foo() {} + pub extern fn a() {} - // CHECK: void @bar() - #[export_name = "bar"] - extern fn bar() {} + // CHECK: void @b() + #[export_name = "b"] + extern fn b() {} - // CHECK: void @baz() - #[export_name = "baz"] + // CHECK: void @c() + #[export_name = "c"] #[inline] - extern fn baz() {} + extern fn c() {} + + // CHECK: void @d() + #[export_name = "d"] + #[inline(always)] + extern fn d() {} } |
