Corrected hex double literal parsing (although it's not 100% correct yet)

This commit is contained in:
Christoffer Lerno
2021-07-12 23:45:34 +02:00
parent a28502a6af
commit 9a6d8d7657
2 changed files with 30 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
module numbers;
double a = 0x1.1p+1;
double b = -12.3e-12;
double c = 0x1.1p-1;
double d = 12.3e+12;
// #expect: numbers.ll
@numbers.a = global double 2.125000e+00, align 8
@numbers.b = global double -1.230000e-11, align 8
@numbers.c = global double 5.312500e-01, align 8
@numbers.d = global double 1.230000e+13, align 8