diff options
author | Andreas Baumann <mail@andreasbaumann.cc> | 2018-12-26 21:57:12 +0100 |
---|---|---|
committer | Andreas Baumann <mail@andreasbaumann.cc> | 2018-12-26 21:57:12 +0100 |
commit | d30cb3af63fcc30b93bc85441dac772021906cc2 (patch) | |
tree | 4cf7d8cd6a6d328e4de3f26be4e26bece5cd79f2 /minie | |
parent | 50c50f34707df53e373ed2d772098162179142f9 (diff) | |
download | compilertests-d30cb3af63fcc30b93bc85441dac772021906cc2.tar.gz compilertests-d30cb3af63fcc30b93bc85441dac772021906cc2.tar.bz2 |
added a test for the for loop<
Diffstat (limited to 'minie')
-rwxr-xr-x | minie/build.sh | 2 | ||||
-rw-r--r-- | minie/test8.e | 14 |
2 files changed, 16 insertions, 0 deletions
diff --git a/minie/build.sh b/minie/build.sh index 101aed4..37bbb6e 100755 --- a/minie/build.sh +++ b/minie/build.sh @@ -8,10 +8,12 @@ gcc -g -O0 -Wall -pedantic -std=c89 -Wno-return-type -o e2c e2c.c ./e2c < test5.e ./e2c < test6.e ./e2c < test7.e +./e2c < test8.e ./e2c < test5.e > test5.c && gcc -g -o test5 test5.c && ./test5 ./e2c < test6.e > test6.c && gcc -g -o test6 test6.c && ( echo 'Hello' | ./test6 ) ./e2c < test7.e > test7.c && gcc -g -o test7 test7.c && ./test7 +./e2c < test8.e > test8.c && gcc -g -o test8 test8.c && ./test8 ./e2c < ec.e ./e2c < ec.e > ec.c && gcc -o ec ec.c diff --git a/minie/test8.e b/minie/test8.e new file mode 100644 index 0000000..827582e --- /dev/null +++ b/minie/test8.e @@ -0,0 +1,14 @@ +module test8; + +import system; + +var + i : integer; + +begin + for i := 1 to 10 do + system.writeinteger( i ); + system.writestring( " " ); + end; + system.writeline( "" ); +end |