rust/tests/ui/statics/check-recursion-foreign.rs
许杰友 Jieyou Xu (Joe) 95ff642797 tests: remove //@ pretty-expanded usages
Done with

```bash
sd '//@ pretty-expanded.*\n' '' tests/ui/**/*.rs
```

and

```
sd '//@pretty-expanded.*\n' '' tests/ui/**/*.rs
```
2024-11-26 02:50:48 +08:00

19 lines
344 B
Rust

//@ run-pass
// Static recursion check shouldn't fail when given a foreign item (#18279)
//@ aux-build:check_static_recursion_foreign_helper.rs
extern crate check_static_recursion_foreign_helper;
use std::ffi::c_int;
extern "C" {
static test_static: c_int;
}
pub static B: &'static c_int = unsafe { &test_static };
pub fn main() {}