Fix broken test on musl

This commit is contained in:
Caleb Zulawski 2020-09-05 21:29:54 -04:00
parent 0c62ef08bd
commit acd68b503d

View File

@ -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() {}