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