mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 17:24:06 +00:00
Fix broken test on musl
This commit is contained in:
parent
0c62ef08bd
commit
acd68b503d
@ -1,6 +1,5 @@
|
||||
// run-pass
|
||||
|
||||
#![allow(dead_code)]
|
||||
// Static recursion check shouldn't fail when given a foreign item (#18279)
|
||||
|
||||
// aux-build:check_static_recursion_foreign_helper.rs
|
||||
@ -15,12 +14,10 @@ extern crate libc;
|
||||
|
||||
use libc::c_int;
|
||||
|
||||
#[link(name = "check_static_recursion_foreign_helper")]
|
||||
extern "C" {
|
||||
#[allow(dead_code)]
|
||||
static test_static: c_int;
|
||||
}
|
||||
|
||||
static B: &'static c_int = unsafe { &test_static };
|
||||
pub static B: &'static c_int = unsafe { &test_static };
|
||||
|
||||
pub fn main() {}
|
||||
|
Loading…
Reference in New Issue
Block a user