From b2dee14873402ee3d13d59ae5579593796ea862f Mon Sep 17 00:00:00 2001 From: Eugen Wissner Date: Wed, 5 Aug 2026 01:03:55 +0200 Subject: Check that constants are initialized --- testsuite/compilable/compile_time_array_length.elna | 2 +- testsuite/compilable/const_alias.elna | 4 ++-- testsuite/compilable/take_const_address.elna | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'testsuite/compilable') 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 -- cgit v1.2.3