summaryrefslogtreecommitdiff
path: root/ecomp-c/test1.e
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2020-05-31 21:01:00 +0200
committerAndreas Baumann <mail@andreasbaumann.cc>2020-05-31 21:01:00 +0200
commit8e3a8018f52834414cbd1184664554e4ddad04cb (patch)
treefb7def4640a76bafa20aad261a5c7fbf1ef2b8be /ecomp-c/test1.e
parentf3a71547972c0114b9db20be63033c058fbb1ffe (diff)
downloadcompilertests-8e3a8018f52834414cbd1184664554e4ddad04cb.tar.gz
compilertests-8e3a8018f52834414cbd1184664554e4ddad04cb.tar.bz2
some work on type compatibility for strings
Diffstat (limited to 'ecomp-c/test1.e')
-rw-r--r--ecomp-c/test1.e3
1 files changed, 2 insertions, 1 deletions
diff --git a/ecomp-c/test1.e b/ecomp-c/test1.e
index 40e32ce..fa66f92 100644
--- a/ecomp-c/test1.e
+++ b/ecomp-c/test1.e
@@ -14,7 +14,7 @@ const
INIT_STATE : boolean = true;
// string constant
- S : array 6 of character = "hello";
+ S : array 10 of character = "hello";
var
// this is an integer
@@ -28,6 +28,7 @@ var
i : integer;
j : character := C;
s : array 6 of character := S;
+ s2 : array 10 of character := "hello";
begin
a := 1;