From 8539c10542a4be1e1127daea60bf1b1e4c37e092 Mon Sep 17 00:00:00 2001 From: Eugen Wissner Date: Sat, 1 Aug 2026 09:30:39 +0200 Subject: Fix compile-time negation and array access --- testsuite/compilable/const_negation.elna | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 testsuite/compilable/const_negation.elna (limited to 'testsuite/compilable') 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. -- cgit v1.2.3