aboutsummaryrefslogtreecommitdiff
path: root/testsuite/compilable/const_negation.elna
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/compilable/const_negation.elna')
-rw-r--r--testsuite/compilable/const_negation.elna8
1 files changed, 8 insertions, 0 deletions
diff --git a/testsuite/compilable/const_negation.elna b/testsuite/compilable/const_negation.elna
new file mode 100644
index 0000000..a62cc1e
--- /dev/null
+++ b/testsuite/compilable/const_negation.elna
@@ -0,0 +1,8 @@
+var
+ x: const Int := -5
+ y: const Int := -x
+
+begin
+ assert(x = -5);
+ assert(y = 5);
+end.