mirror of
https://github.com/allankoechke/rust.git
synced 2026-11-30 11:05:36 +00:00
12 lines
387 B
Rust
12 lines
387 B
Rust
//@ normalize-stderr: "pref: Align\([1-8] bytes\)" -> "pref: $$PREF_ALIGN"
|
|
//! Various struct layout tests.
|
|
|
|
#![feature(rustc_attrs)]
|
|
#![crate_type = "lib"]
|
|
|
|
#[rustc_dump_layout(backend_repr)]
|
|
struct AlignedZstPreventsScalar(i16, [i32; 0]); //~ERROR: backend_repr: Memory
|
|
|
|
#[rustc_dump_layout(backend_repr)]
|
|
struct AlignedZstButStillScalar(i32, [i16; 0]); //~ERROR: backend_repr: Scalar
|