]> git.lizzy.rs Git - rust.git/blob - tests/ui/check-static-recursion-foreign.rs
Auto merge of #106825 - weihanglo:update-cargo, r=weihanglo
[rust.git] / tests / ui / check-static-recursion-foreign.rs
1 // run-pass
2
3 // Static recursion check shouldn't fail when given a foreign item (#18279)
4
5 // aux-build:check_static_recursion_foreign_helper.rs
6 // ignore-wasm32-bare no libc to test ffi with
7
8 // pretty-expanded FIXME #23616
9
10 #![feature(rustc_private)]
11
12 extern crate check_static_recursion_foreign_helper;
13 extern crate libc;
14
15 use libc::c_int;
16
17 extern "C" {
18     static test_static: c_int;
19 }
20
21 pub static B: &'static c_int = unsafe { &test_static };
22
23 pub fn main() {}