diff options
| author | Eugen Wissner <belka@caraus.de> | 2026-08-05 01:03:55 +0200 |
|---|---|---|
| committer | Eugen Wissner <belka@caraus.de> | 2026-08-05 21:27:36 +0200 |
| commit | b2dee14873402ee3d13d59ae5579593796ea862f (patch) | |
| tree | 1f245eac1a23a73f45124498fc8274874e35750e /testsuite/compilable | |
| parent | 1c2fb173ea3b674207badc721556ad72962b266e (diff) | |
| download | elna-b2dee14873402ee3d13d59ae5579593796ea862f.tar.gz | |
Check that constants are initialized
Diffstat (limited to 'testsuite/compilable')
| -rw-r--r-- | testsuite/compilable/compile_time_array_length.elna | 2 | ||||
| -rw-r--r-- | testsuite/compilable/const_alias.elna | 4 | ||||
| -rw-r--r-- | testsuite/compilable/take_const_address.elna | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/testsuite/compilable/compile_time_array_length.elna b/testsuite/compilable/compile_time_array_length.elna index 1ce8956..12e706f 100644 --- a/testsuite/compilable/compile_time_array_length.elna +++ b/testsuite/compilable/compile_time_array_length.elna @@ -1,5 +1,5 @@ var - source: [3]Int := [3]Int{ 1, 2, 3} + source: const [3]Int := [3]Int{ 1, 2, 3 } target: Word := source.length end. diff --git a/testsuite/compilable/const_alias.elna b/testsuite/compilable/const_alias.elna index 9cb9ffb..e17c55f 100644 --- a/testsuite/compilable/const_alias.elna +++ b/testsuite/compilable/const_alias.elna @@ -3,8 +3,8 @@ type CCI = const CI var - x: CCI - y: const CI + x: CCI := 8 + y: const CI := 9 begin end. diff --git a/testsuite/compilable/take_const_address.elna b/testsuite/compilable/take_const_address.elna index 54a2992..f8c9e5c 100644 --- a/testsuite/compilable/take_const_address.elna +++ b/testsuite/compilable/take_const_address.elna @@ -1,6 +1,6 @@ var x: ^const Int - y: const Int + y: const Int := 1 begin x := @y |
