2019-07-26 21:54:25 +00:00
|
|
|
// run-pass
|
|
|
|
|
2014-10-24 14:32:43 +00:00
|
|
|
// Static recursion check shouldn't fail when given a foreign item (#18279)
|
|
|
|
|
|
|
|
// aux-build:check_static_recursion_foreign_helper.rs
|
2017-10-23 03:01:00 +00:00
|
|
|
// ignore-wasm32-bare no libc to test ffi with
|
2015-02-14 10:45:43 +00:00
|
|
|
|
2015-03-22 20:13:15 +00:00
|
|
|
// pretty-expanded FIXME #23616
|
|
|
|
|
2019-06-08 08:35:30 +00:00
|
|
|
#![feature(rustc_private)]
|
2015-02-14 10:45:43 +00:00
|
|
|
|
2014-10-24 14:32:43 +00:00
|
|
|
extern crate check_static_recursion_foreign_helper;
|
|
|
|
extern crate libc;
|
|
|
|
|
|
|
|
use libc::c_int;
|
|
|
|
|
|
|
|
extern "C" {
|
|
|
|
static test_static: c_int;
|
|
|
|
}
|
|
|
|
|
2020-09-06 01:29:54 +00:00
|
|
|
pub static B: &'static c_int = unsafe { &test_static };
|
2014-10-24 14:32:43 +00:00
|
|
|
|
|
|
|
pub fn main() {}
|