Skip to content

Commit

Permalink
Add test for #43398
Browse files Browse the repository at this point in the history
Closes #43398
  • Loading branch information
iluuu1994 committed Aug 5, 2019
1 parent a7f2867 commit ebc3600
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/test/ui/issues/issue-43398.rs
@@ -0,0 +1,15 @@
// run-pass

#![feature(core_intrinsics)]
#![feature(repr128)]

#[repr(i128)]
enum Big { A, B }

fn main() {
unsafe {
println!("{} {:?}",
std::intrinsics::discriminant_value(&Big::A),
std::mem::discriminant(&Big::B));
}
}

0 comments on commit ebc3600

Please sign in to comment.