Skip to content

Commit

Permalink
Add test for 116212.
Browse files Browse the repository at this point in the history
  • Loading branch information
cjgillot committed Sep 28, 2023
1 parent dd91aba commit 255ca18
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tests/mir-opt/ssa_unreachable_116212.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// Regression test for issue #116212.

#![feature(never_type)]

use std::mem::MaybeUninit;

struct Foo {
x: u8,
y: !,
}

fn main() {
let foo = unsafe { MaybeUninit::<Foo>::uninit().assume_init() };
}

0 comments on commit 255ca18

Please sign in to comment.