Add regression test for issue #113941 - naive layout isn't refined
This commit is contained in:
parent
a161ab00db
commit
ffa4b6f422
13
tests/ui/layout/issue-113941.rs
Normal file
13
tests/ui/layout/issue-113941.rs
Normal 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() {}
|
Loading…
Reference in New Issue
Block a user