2018-08-30 14:18:55 +02:00
|
|
|
// run-pass
|
2018-09-25 23:51:35 +02:00
|
|
|
#![allow(dead_code)]
|
2018-08-31 15:02:01 +02:00
|
|
|
#![allow(non_camel_case_types)]
|
|
|
|
|
2015-06-29 17:28:21 -07:00
|
|
|
const JSVAL_TAG_CLEAR: u32 = 0xFFFFFF80;
|
|
|
|
const JSVAL_TYPE_INT32: u8 = 0x01;
|
|
|
|
const JSVAL_TYPE_UNDEFINED: u8 = 0x02;
|
|
|
|
#[repr(u32)]
|
|
|
|
enum ValueTag {
|
|
|
|
JSVAL_TAG_INT32 = JSVAL_TAG_CLEAR | (JSVAL_TYPE_INT32 as u32),
|
|
|
|
JSVAL_TAG_UNDEFINED = JSVAL_TAG_CLEAR | (JSVAL_TYPE_UNDEFINED as u32),
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
let _ = ValueTag::JSVAL_TAG_INT32;
|
|
|
|
}
|