Add test for #43398

Closes #43398
This commit is contained in:
Ilija Tovilo 2019-07-26 00:20:28 +02:00
parent a7f28678bb
commit ebc36001c0
No known key found for this signature in database
GPG Key ID: 3F123D0ADD448198

View File

@ -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));
}
}