aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2019-03-12 16:28:06 -0700
committerMichael Forney <mforney@mforney.org>2019-03-12 16:28:21 -0700
commit9c824820b0add0bd840fb559fa4e98afea65986b (patch)
tree993713da2327a594a92408eaf77fdc45f6e02fa0 /tests
parent4a17a825e5944041bbcd4aed6a85fb7590247a62 (diff)
scan: Accept leading `.` in pp-number
Diffstat (limited to 'tests')
-rw-r--r--tests/float-const-leading-dot.c1
-rw-r--r--tests/float-const-leading-dot.qbe1
2 files changed, 2 insertions, 0 deletions
diff --git a/tests/float-const-leading-dot.c b/tests/float-const-leading-dot.c
new file mode 100644
index 0000000..bfed54a
--- /dev/null
+++ b/tests/float-const-leading-dot.c
@@ -0,0 +1 @@
+float x = .5;
diff --git a/tests/float-const-leading-dot.qbe b/tests/float-const-leading-dot.qbe
new file mode 100644
index 0000000..12ae325
--- /dev/null
+++ b/tests/float-const-leading-dot.qbe
@@ -0,0 +1 @@
+export data $x = align 4 { s s_0x1p-1, }