Add regression test for issue #113941 - naive layout isn't refined

This commit is contained in:
Urgau 2023-07-22 13:02:59 +02:00
parent a161ab00db
commit ffa4b6f422

View File

@ -0,0 +1,13 @@
// build-pass
// revisions: normal randomize-layout
// [randomize-layout]compile-flags: -Zrandomize-layout
enum Void {}
pub struct Struct([*const (); 0], Void);
pub enum Enum {
Variant(Struct),
}
fn main() {}