summaryrefslogtreecommitdiff
path: root/Test/test21/LargeLiterals0.bpl
diff options
context:
space:
mode:
Diffstat (limited to 'Test/test21/LargeLiterals0.bpl')
-rw-r--r--Test/test21/LargeLiterals0.bpl20
1 files changed, 20 insertions, 0 deletions
diff --git a/Test/test21/LargeLiterals0.bpl b/Test/test21/LargeLiterals0.bpl
new file mode 100644
index 00000000..a77ffadd
--- /dev/null
+++ b/Test/test21/LargeLiterals0.bpl
@@ -0,0 +1,20 @@
+
+
+var x : int;
+
+procedure P() modifies x; {
+
+ x := 1000000;
+ assert x > 0 && x < 2000000;
+
+ x := x + 256;
+ assert x == 1000256;
+
+ x := 1000000000000;
+ x := x + 100100;
+ x := x - 100;
+ assert x == 1000000100000;
+
+ assert x < -123456789; // error
+
+} \ No newline at end of file