summaryrefslogtreecommitdiff
path: root/Test/dafny4/LargeConstants.dfy
diff options
context:
space:
mode:
Diffstat (limited to 'Test/dafny4/LargeConstants.dfy')
-rw-r--r--Test/dafny4/LargeConstants.dfy14
1 files changed, 14 insertions, 0 deletions
diff --git a/Test/dafny4/LargeConstants.dfy b/Test/dafny4/LargeConstants.dfy
new file mode 100644
index 00000000..18435c30
--- /dev/null
+++ b/Test/dafny4/LargeConstants.dfy
@@ -0,0 +1,14 @@
+// RUN: %dafny /compile:0 /dprint:"%t.dprint" "%s" > "%t"
+// RUN: %diff "%s.expect" "%t"
+
+lemma largeIsLarge()
+ ensures 0x8000000000000000 > 0 {
+}
+
+lemma SmallIsSmall()
+ ensures -0x8000000000000000 < 0 {
+}
+
+lemma ShouldCancelOut()
+ ensures -0x8000000000000000 + 0x8000000000000000 == 0 {
+}