blob: b29b5907be4dc0b379bfc90cc81a4db044f38b04 [file] [log] [blame]
/*
TEST_OUTPUT:
---
fail_compilation/fail254.d(12): Error: integer overflow
fail_compilation/fail254.d(13): Error: integer overflow
fail_compilation/fail254.d(14): Error: integer overflow
fail_compilation/fail254.d(15): Error: integer overflow
fail_compilation/fail254.d(16): Error: integer overflow
---
*/
ulong v1 = 0xFFFF_FFFF_FFFF_FFFF_FFFF_FFFF_FFFF_FFFF;
ulong v2 = 0x1_0000_0000_0000_0000;
ulong v3 = 0x1_FFFF_FFFF_FFFF_FFFF;
ulong v4 = 0x7_FFFF_FFFF_FFFF_FFFF;
ulong v5 = 0x1_0000_FFFF_FFFF_FFFF;