Fix reachable_set for non-function items in non-library crates
This commit is contained in:
parent
9315a0cd4c
commit
29b73ee5fa
2 changed files with 19 additions and 17 deletions
|
|
@ -1,10 +1,11 @@
|
|||
// revisions: lib staticlib
|
||||
// ignore-emscripten default visibility is hidden
|
||||
// compile-flags: -O
|
||||
// `#[no_mangle]`d static variables always have external linkage, i.e., no `internal` in their
|
||||
// definitions
|
||||
|
||||
#![crate_type = "lib"]
|
||||
#![no_std]
|
||||
#![cfg_attr(lib, crate_type = "lib")]
|
||||
#![cfg_attr(staticlib, crate_type = "staticlib")]
|
||||
|
||||
// CHECK: @A = local_unnamed_addr constant
|
||||
#[no_mangle]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue