aboutsummaryrefslogtreecommitdiff
path: root/testsuite/compilable
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/compilable')
-rw-r--r--testsuite/compilable/compile_time_array_length.elna2
-rw-r--r--testsuite/compilable/const_alias.elna4
-rw-r--r--testsuite/compilable/take_const_address.elna2
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