2019-07-27 00:54:25 +03:00
|
|
|
//@ run-pass
|
|
|
|
|
2014-10-24 10:32:43 -04:00
|
|
|
// Static recursion check shouldn't fail when given a foreign item (#18279)
|
|
|
|
|
|
|
|
//@ aux-build:check_static_recursion_foreign_helper.rs
|
2015-02-14 16:15:43 +05:30
|
|
|
|
2015-03-22 13:13:15 -07:00
|
|
|
//@ pretty-expanded FIXME #23616
|
|
|
|
|
2014-10-24 10:32:43 -04:00
|
|
|
extern crate check_static_recursion_foreign_helper;
|
|
|
|
|
2024-04-14 16:23:07 -04:00
|
|
|
use std::ffi::c_int;
|
2014-10-24 10:32:43 -04:00
|
|
|
|
|
|
|
extern "C" {
|
|
|
|
static test_static: c_int;
|
|
|
|
}
|
|
|
|
|
2020-09-05 21:29:54 -04:00
|
|
|
pub static B: &'static c_int = unsafe { &test_static };
|
2014-10-24 10:32:43 -04:00
|
|
|
|
|
|
|
pub fn main() {}
|