11 lines
401 B
Rust
11 lines
401 B
Rust
//@ only-target-linux: we need a specific extern supported on this target
|
|
//@normalize-stderr-test: "[48] bytes" -> "N bytes"
|
|
|
|
extern "C" {
|
|
static mut environ: i8;
|
|
}
|
|
|
|
fn main() {
|
|
let _val = unsafe { environ }; //~ ERROR: /has been declared with a size of 1 bytes and alignment of 1 bytes, but Miri emulates it via an extern static shim with a size of [48] bytes and alignment of [48] bytes/
|
|
}
|