summaryrefslogtreecommitdiff
path: root/ecomp-c/test1.e
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2020-05-31 16:56:16 +0200
committerAndreas Baumann <mail@andreasbaumann.cc>2020-05-31 16:56:16 +0200
commit3e86cfaf371ca99147f10432c1da3726ad52c376 (patch)
treece1423e0d5dd3908f2ba99528e2fb9df24bafe58 /ecomp-c/test1.e
parent391b6e0958be1f6d00c5f3c7e57fee87bec965ef (diff)
downloadcompilertests-3e86cfaf371ca99147f10432c1da3726ad52c376.tar.gz
compilertests-3e86cfaf371ca99147f10432c1da3726ad52c376.tar.bz2
ec: zero-terminate string literals
emul: compute size of initial data in binary, print correct data adapted tests
Diffstat (limited to 'ecomp-c/test1.e')
-rw-r--r--ecomp-c/test1.e4
1 files changed, 2 insertions, 2 deletions
diff --git a/ecomp-c/test1.e b/ecomp-c/test1.e
index f18f847..40e32ce 100644
--- a/ecomp-c/test1.e
+++ b/ecomp-c/test1.e
@@ -14,7 +14,7 @@ const
INIT_STATE : boolean = true;
// string constant
- S : array 5 of character = "hello";
+ S : array 6 of character = "hello";
var
// this is an integer
@@ -27,7 +27,7 @@ var
flag : boolean;
i : integer;
j : character := C;
- s : array 5 of character := S;
+ s : array 6 of character := S;
begin
a := 1;