summaryrefslogtreecommitdiff
path: root/tests/typ/bugs/int-constructor.typ
diff options
context:
space:
mode:
Diffstat (limited to 'tests/typ/bugs/int-constructor.typ')
-rw-r--r--tests/typ/bugs/int-constructor.typ7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/typ/bugs/int-constructor.typ b/tests/typ/bugs/int-constructor.typ
new file mode 100644
index 00000000..0bdce612
--- /dev/null
+++ b/tests/typ/bugs/int-constructor.typ
@@ -0,0 +1,7 @@
+// Test that integer -> integer conversion doesn't do a roundtrip through float.
+// Ref: false
+
+---
+#let x = 9223372036854775800
+#test(type(x), int)
+#test(int(x), x)