Skip to content

Commit 6aebb2c

Browse files
committed
Add test.
1 parent f6fa358 commit 6aebb2c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
//@ build-pass
2+
//@ compile-flags: -Zmir-opt-level=0 -Zmir-enable-passes=+GVN
3+
4+
fn main() {
5+
let variant: Option<u32> = None;
6+
let transmuted: u64 = unsafe { std::mem::transmute(variant) };
7+
println!("{transmuted}");
8+
}

0 commit comments

Comments
 (0)