Skip to content

Commit

Permalink
Add regression test for issue rust-lang#113941 - naive layout isn't r…
Browse files Browse the repository at this point in the history
…efined
  • Loading branch information
Urgau committed Jul 22, 2023
1 parent a161ab0 commit ffa4b6f
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/ui/layout/issue-113941.rs
Original file line number Diff line number Diff line change
@@ -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() {}

0 comments on commit ffa4b6f

Please sign in to comment.