diff options
| author | Eugen Wissner <belka@caraus.de> | 2026-08-01 09:30:39 +0200 |
|---|---|---|
| committer | Eugen Wissner <belka@caraus.de> | 2026-08-01 09:34:21 +0200 |
| commit | 8539c10542a4be1e1127daea60bf1b1e4c37e092 (patch) | |
| tree | f04e3b0e97e4d201ee5ebdb0b2bd9079af4b1820 /testsuite/compilable/const_negation.elna | |
| parent | 661c29a7835cf1755deaf21f91832f00e958a318 (diff) | |
| download | elna-8539c10542a4be1e1127daea60bf1b1e4c37e092.tar.gz | |
Fix compile-time negation and array access
Diffstat (limited to 'testsuite/compilable/const_negation.elna')
| -rw-r--r-- | testsuite/compilable/const_negation.elna | 8 |
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. |
