86 lines
3.9 KiB
Plaintext
86 lines
3.9 KiB
Plaintext
{1}namespace{0} {6}Literals{0}
|
|
|
|
{1}module{0} {6}Issue110{0} {12}={0}
|
|
{1}let{0} {6}hexA{0} {12}={0} {13}+0xA1B2C3D4{0}
|
|
{1}let{0} {6}hexB{0} {12}={0} {13}-0xCC100000{0}
|
|
|
|
{9}// regression checks{0}
|
|
{1}let{0} {6}hexC{0} {12}={0} {13}0xCC100000{0}
|
|
{1}let{0} {6}binA{0} {12}={0} {13}+0b0000_1010{0}
|
|
{1}let{0} {6}binB{0} {12}={0} {13}-0b1010_0000{0}
|
|
{1}let{0} {6}binC{0} {12}={0} {13}0b1010_0000{0}
|
|
{1}let{0} {6}octA{0} {12}={0} {13}+0o1237777700{0}
|
|
{1}let{0} {6}octB{0} {12}={0} {13}-0o1237777700{0}
|
|
{1}let{0} {6}octC{0} {12}={0} {13}0o1237777700{0}
|
|
{1}let{0} {6}i8a{0} {12}={0} {13}+0001y{0}
|
|
{1}let{0} {6}i8b{0} {12}={0} {13}-0001y{0}
|
|
{1}let{0} {6}u8{0} {12}={0} {13}0001uy{0}
|
|
{1}let{0} {6}f32a{0} {12}={0} {13}+0.001e-003{0}
|
|
{1}let{0} {6}f32b{0} {12}={0} {13}-0.001E+003{0}
|
|
{1}let{0} {6}f32c{0} {12}={0} {13}0.001e-003{0}
|
|
{1}let{0} {6}f128a{0} {12}={0} {13}+0.001m{0}
|
|
{1}let{0} {6}f128b{0} {12}={0} {13}-0.001m{0}
|
|
{1}let{0} {6}f128c{0} {12}={0} {13}0.001m{0}
|
|
|
|
{9}// invalid literals{0}
|
|
{1}let{0} {6}hexD{0} {12}={0} {13}0xa0bcde0{0}o
|
|
{1}let{0} {6}hexE{0} {12}={0} {13}+0xa0bcd0{0}o
|
|
{1}let{0} {6}hexF{0} {12}={0} {13}-0xa0bcd0{0}o
|
|
{1}let{0} {6}binD{0} {12}={0} {13}0b1010_1110{0}x{6}f000{0}
|
|
{1}let{0} {6}binE{0} {12}={0} {13}+0b1010_1110{0}x{6}f000{0}
|
|
{1}let{0} {6}binF{0} {12}={0} {13}-0b1010_1110{0}x{6}f000{0}
|
|
{1}let{0} {6}binG{0} {12}={0} {13}0b1010_1110{0}o
|
|
{1}let{0} {6}binH{0} {12}={0} {13}+0b1010_1110{0}o
|
|
{1}let{0} {6}binI{0} {12}={0} {13}-0b1010_1110{0}o
|
|
{1}let{0} {6}octD{0} {12}={0} {13}0o3330{0}x{6}aBcDeF{0}
|
|
{1}let{0} {6}octE{0} {12}={0} {13}+0o3330{0}x{6}aBcDe{0}
|
|
{1}let{0} {6}octF{0} {12}={0} {13}-0o3330{0}x{6}aBcDe{0}
|
|
{1}let{0} {6}octG{0} {12}={0} {13}0o3330{0}b
|
|
{1}let{0} {6}octH{0} {12}={0} {13}0o3330{0}b
|
|
{1}let{0} {6}octI{0} {12}={0} {13}0o3330{0}b
|
|
|
|
{1}module{0} {6}Issue111{0} {12}={0}
|
|
{9}// invalid literals{0}
|
|
{1}let{0} {6}a{0} {12}={0} {13}0000_123{0}a{6}bc{0}
|
|
{1}let{0} {6}b{0} {12}={0} {13}+000_123{0}a{6}bc{0}
|
|
{1}let{0} {6}c{0} {12}={0} {13}-0001_23{0}a{6}bc{0}
|
|
{1}let{0} {6}d{0} {12}={0} {13}00123_000{0}b
|
|
{1}let{0} {6}e{0} {12}={0} {13}+0123_000{0}o
|
|
{1}let{0} {6}f{0} {12}={0} {13}-0123_000{0}x{6}cd{0}
|
|
|
|
{1}module{0} {6}Issue112{0} {12}={0}
|
|
{1}let{0} {6}i64{0} {12}={0} {13}0001L{0}
|
|
{1}let{0} {6}u64{0} {12}={0} {13}001UL{0}
|
|
{1}let{0} {6}f32a{0} {12}={0} {13}001.F{0}
|
|
{1}let{0} {6}f32b{0} {12}={0} {13}+01.0F{0}
|
|
{1}let{0} {6}f32c{0} {12}={0} {13}-01.00000F{0}
|
|
{1}let{0} {6}f32d{0} {12}={0} {13}0b0000_0010lf{0}
|
|
{1}let{0} {6}f32e{0} {12}={0} {13}0o000_010lf{0}
|
|
{1}let{0} {6}f32f{0} {12}={0} {13}0x0000000000000010lf{0}
|
|
{1}let{0} {6}f64a{0} {12}={0} {13}0b0000_0010LF{0}
|
|
{1}let{0} {6}f64b{0} {12}={0} {13}0o000_010LF{0}
|
|
{1}let{0} {6}f64c{0} {12}={0} {13}0x0000000000000010LF{0}
|
|
{1}let{0} {6}f128a{0} {12}={0} {13}001.M{0}
|
|
{1}let{0} {6}f128b{0} {12}={0} {13}+01.0M{0}
|
|
{1}let{0} {6}f128c{0} {12}={0} {13}-01.00000M{0}
|
|
|
|
{9}// regression checks{0}
|
|
{1}let{0} {6}i32{0} {12}={0} {13}-0001l{0}
|
|
{1}let{0} {6}u32{0} {12}={0} {13}+001ul{0}
|
|
{1}let{0} {6}i128{0} {12}={0} {13}9999999999999999999999999999I{0}
|
|
{1}let{0} {6}f32g{0} {12}={0} {13}001.f{0}
|
|
{1}let{0} {6}f32h{0} {12}={0} {13}+01.0f{0}
|
|
{1}let{0} {6}f32i{0} {12}={0} {13}-01.00000f{0}
|
|
{1}let{0} {6}f64d{0} {12}={0} {13}010000e+009{0}
|
|
{1}let{0} {6}f64e{0} {12}={0} {13}+001.0e-009{0}
|
|
{1}let{0} {6}f64f{0} {12}={0} {13}-001.e+009{0}
|
|
{1}let{0} {6}f128d{0} {12}={0} {13}001.m{0}
|
|
{1}let{0} {6}f128e{0} {12}={0} {13}+01.0m{0}
|
|
{1}let{0} {6}f128f{0} {12}={0} {13}-01.00000m{0}
|
|
|
|
{9}// arithmetic expressions{0}
|
|
{1}let{0} {6}a{0} {12}={0} {13}-001.f{12}+{13}01.0F{0}
|
|
{1}let{0} {6}b{0} {12}={0} {13}+0b0111_111UL{12}-{13}0x100UL{0}
|
|
{1}let{0} {6}c{0} {12}={0} {13}-01.0F{0} {12}+{0} {13}+001.f{0}
|
|
{1}let{0} {6}d{0} {12}={0} {13}-0x100UL{0} {12}-{0} {13}+0b0111_111UL{0}
|