├── .gitignore ├── .vscode └── settings.json ├── LICENSE ├── Makefile ├── README.md ├── ast.c ├── ast.h ├── data.h ├── declaration.c ├── declaration.h ├── definations.h ├── generator.c ├── generator.h ├── generator_core.c ├── generator_core.h ├── generator_core_arm.c ├── helper.c ├── helper.h ├── incdir.h ├── include ├── ctype.h ├── errno.h ├── fcntl.h ├── stddef.h ├── stdio.h ├── stdlib.h ├── string.h └── unistd.h ├── interpreter.c ├── interpreter.h ├── main.c ├── optimizer.c ├── optimizer.h ├── parser.c ├── parser.h ├── scan.c ├── scan.h ├── statement.c ├── statement.h ├── symbol_table.c ├── symbol_table.h ├── test ├── assert │ ├── out.input001.zc │ ├── out.input002.zc │ ├── out.input003.zc │ ├── out.input004.zc │ ├── out.input005.zc │ ├── out.input006.zc │ ├── out.input007.zc │ ├── out.input008.zc │ ├── out.input009.zc │ ├── out.input010.zc │ ├── out.input011.zc │ ├── out.input012.zc │ ├── out.input013.zc │ ├── out.input014.zc │ ├── out.input015.zc │ ├── out.input016.zc │ ├── out.input017.zc │ ├── out.input018.zc │ ├── out.input019.zc │ ├── out.input020.zc │ ├── out.input021.zc │ ├── out.input022.zc │ ├── out.input023.zc │ ├── out.input024.zc │ ├── out.input025.zc │ ├── out.input026.zc │ ├── out.input027.zc │ ├── out.input028.zc │ ├── out.input029.zc │ ├── out.input030.zc │ ├── out.input053.zc │ ├── out.input054.zc │ ├── out.input055.zc │ ├── out.input058.zc │ ├── out.input062.zc │ ├── out.input063.zc │ ├── out.input067.zc │ ├── out.input070.zc │ ├── out.input071.zc │ ├── out.input074.zc │ ├── out.input080.zc │ ├── out.input081.zc │ ├── out.input082.zc │ ├── out.input083.zc │ ├── out.input084.zc │ ├── out.input088.zc │ ├── out.input089.zc │ ├── out.input090.zc │ ├── out.input091.zc │ ├── out.input099.zc │ ├── out.input100.zc │ ├── out.input101.zc │ ├── out.input106.zc │ ├── out.input107.zc │ ├── out.input108.zc │ ├── out.input109.zc │ ├── out.input110.zc │ ├── out.input111.zc │ ├── out.input112.zc │ ├── out.input113.zc │ ├── out.input114.zc │ ├── out.input115.zc │ ├── out.input116.zc │ ├── out.input117.zc │ ├── out.input119.zc │ ├── out.input120.zc │ ├── out.input121.zc │ ├── out.input122.zc │ ├── out.input123.zc │ ├── out.input125.zc │ ├── out.input127.zc │ ├── out.input128.zc │ ├── out.input130.zc │ ├── out.input131.zc │ ├── out.input132.zc │ ├── out.input133.zc │ ├── out.input134.zc │ ├── out.input135.zc │ ├── out.input136.zc │ ├── out.input137.zc │ ├── out.input138.zc │ ├── out.input139.zc │ ├── out.input140.zc │ ├── out.input143.zc │ ├── out.input144.zc │ ├── out.input145.zc │ ├── out.input146.zc │ ├── out.input147.zc │ ├── out.input148.zc │ ├── out.input149.zc │ ├── out.input150.zc │ ├── out.input151.zc │ ├── out.input152.zc │ └── out.input153.zc ├── error │ ├── error.input031.zc │ ├── error.input032.zc │ ├── error.input033.zc │ ├── error.input035.zc │ ├── error.input036.zc │ ├── error.input037.zc │ ├── error.input038.zc │ ├── error.input039.zc │ ├── error.input040.zc │ ├── error.input041.zc │ ├── error.input042.zc │ ├── error.input043.zc │ ├── error.input044.zc │ ├── error.input045.zc │ ├── error.input046.zc │ ├── error.input047.zc │ ├── error.input048.zc │ ├── error.input049.zc │ ├── error.input050.zc │ ├── error.input051.zc │ ├── error.input052.zc │ ├── error.input056.zc │ ├── error.input057.zc │ ├── error.input059.zc │ ├── error.input060.zc │ ├── error.input061.zc │ ├── error.input064.zc │ ├── error.input065.zc │ ├── error.input066.zc │ ├── error.input068.zc │ ├── error.input069.zc │ ├── error.input072.zc │ ├── error.input073.zc │ ├── error.input075.zc │ ├── error.input076.zc │ ├── error.input077.zc │ ├── error.input078.zc │ ├── error.input079.zc │ ├── error.input085.zc │ ├── error.input086.zc │ ├── error.input087.zc │ ├── error.input092.zc │ ├── error.input093.zc │ ├── error.input094.zc │ ├── error.input095.zc │ ├── error.input096.zc │ ├── error.input098.zc │ ├── error.input102.zc │ ├── error.input103.zc │ ├── error.input104.zc │ ├── error.input105.zc │ ├── error.input118.zc │ ├── error.input124.zc │ ├── error.input126.zc │ ├── error.input129.zc │ ├── error.input141.zc │ └── error.input142.zc ├── input001.zc ├── input002.zc ├── input003.zc ├── input004.zc ├── input005.zc ├── input006.zc ├── input007.zc ├── input008.zc ├── input009.zc ├── input010.zc ├── input011.zc ├── input012.zc ├── input013.zc ├── input014.zc ├── input015.zc ├── input016.zc ├── input017.zc ├── input018.zc ├── input019.zc ├── input020.zc ├── input021.zc ├── input022.zc ├── input023.zc ├── input024.zc ├── input025.zc ├── input026.zc ├── input027.zc ├── input028.zc ├── input029.zc ├── input030.zc ├── input031.zc ├── input032.zc ├── input033.zc ├── input035.zc ├── input036.zc ├── input037.zc ├── input038.zc ├── input039.zc ├── input040.zc ├── input041.zc ├── input042.zc ├── input043.zc ├── input044.zc ├── input045.zc ├── input046.zc ├── input047.zc ├── input048.zc ├── input049.zc ├── input050.zc ├── input051.zc ├── input052.zc ├── input053.zc ├── input054.zc ├── input055.zc ├── input056.zc ├── input057.zc ├── input058.zc ├── input059.zc ├── input060.zc ├── input061.zc ├── input062.zc ├── input063.zc ├── input064.zc ├── input065.zc ├── input066.zc ├── input067.zc ├── input068.zc ├── input069.zc ├── input070.zc ├── input071.zc ├── input072.zc ├── input073.zc ├── input074.zc ├── input075.zc ├── input076.zc ├── input077.zc ├── input078.zc ├── input079.zc ├── input080.zc ├── input081.zc ├── input082.zc ├── input083.zc ├── input084.zc ├── input085.zc ├── input086.zc ├── input087.zc ├── input088.zc ├── input089.zc ├── input090.zc ├── input091.zc ├── input092.zc ├── input093.zc ├── input094.zc ├── input095.zc ├── input096.zc ├── input098.zc ├── input099.zc ├── input100.zc ├── input101.zc ├── input102.zc ├── input103.zc ├── input104.zc ├── input105.zc ├── input106.zc ├── input107.zc ├── input108.zc ├── input109.zc ├── input110.zc ├── input111.zc ├── input112.zc ├── input113.zc ├── input114.zc ├── input115.zc ├── input116.zc ├── input117.zc ├── input118.zc ├── input119.zc ├── input120.zc ├── input121.zc ├── input122.zc ├── input123.zc ├── input124.zc ├── input125.zc ├── input126.zc ├── input127.zc ├── input128.zc ├── input129.zc ├── input130.zc ├── input131.zc ├── input132.zc ├── input133.zc ├── input134.zc ├── input135.zc ├── input136.zc ├── input137.zc ├── input138.zc ├── input139.zc ├── input140.zc ├── input141.zc ├── input142.zc ├── input143.zc ├── input144.zc ├── input145.zc ├── input146.zc ├── input147.zc ├── input148.zc ├── input149.zc ├── input150.zc ├── input151.zc ├── input152.zc ├── input153.zc ├── make_test └── run_test ├── types.c └── types.h /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/.gitignore -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/.vscode/settings.json -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/LICENSE -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/Makefile -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/README.md -------------------------------------------------------------------------------- /ast.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/ast.c -------------------------------------------------------------------------------- /ast.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/ast.h -------------------------------------------------------------------------------- /data.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/data.h -------------------------------------------------------------------------------- /declaration.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/declaration.c -------------------------------------------------------------------------------- /declaration.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/declaration.h -------------------------------------------------------------------------------- /definations.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/definations.h -------------------------------------------------------------------------------- /generator.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/generator.c -------------------------------------------------------------------------------- /generator.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/generator.h -------------------------------------------------------------------------------- /generator_core.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/generator_core.c -------------------------------------------------------------------------------- /generator_core.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/generator_core.h -------------------------------------------------------------------------------- /generator_core_arm.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/generator_core_arm.c -------------------------------------------------------------------------------- /helper.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/helper.c -------------------------------------------------------------------------------- /helper.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/helper.h -------------------------------------------------------------------------------- /incdir.h: -------------------------------------------------------------------------------- 1 | #define INCDIR "/tmp/include" 2 | -------------------------------------------------------------------------------- /include/ctype.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/include/ctype.h -------------------------------------------------------------------------------- /include/errno.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/include/errno.h -------------------------------------------------------------------------------- /include/fcntl.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/include/fcntl.h -------------------------------------------------------------------------------- /include/stddef.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/include/stddef.h -------------------------------------------------------------------------------- /include/stdio.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/include/stdio.h -------------------------------------------------------------------------------- /include/stdlib.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/include/stdlib.h -------------------------------------------------------------------------------- /include/string.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/include/string.h -------------------------------------------------------------------------------- /include/unistd.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/include/unistd.h -------------------------------------------------------------------------------- /interpreter.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/interpreter.c -------------------------------------------------------------------------------- /interpreter.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/interpreter.h -------------------------------------------------------------------------------- /main.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/main.c -------------------------------------------------------------------------------- /optimizer.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/optimizer.c -------------------------------------------------------------------------------- /optimizer.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/optimizer.h -------------------------------------------------------------------------------- /parser.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/parser.c -------------------------------------------------------------------------------- /parser.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/parser.h -------------------------------------------------------------------------------- /scan.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/scan.c -------------------------------------------------------------------------------- /scan.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/scan.h -------------------------------------------------------------------------------- /statement.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/statement.c -------------------------------------------------------------------------------- /statement.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/statement.h -------------------------------------------------------------------------------- /symbol_table.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/symbol_table.c -------------------------------------------------------------------------------- /symbol_table.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/symbol_table.h -------------------------------------------------------------------------------- /test/assert/out.input001.zc: -------------------------------------------------------------------------------- 1 | 36 2 | 10 3 | 25 4 | -------------------------------------------------------------------------------- /test/assert/out.input002.zc: -------------------------------------------------------------------------------- 1 | 17 2 | -------------------------------------------------------------------------------- /test/assert/out.input003.zc: -------------------------------------------------------------------------------- 1 | 1 2 | 2 3 | 3 4 | 4 5 | 5 6 | -------------------------------------------------------------------------------- /test/assert/out.input004.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/assert/out.input004.zc -------------------------------------------------------------------------------- /test/assert/out.input005.zc: -------------------------------------------------------------------------------- 1 | 6 2 | -------------------------------------------------------------------------------- /test/assert/out.input006.zc: -------------------------------------------------------------------------------- 1 | 1 2 | 2 3 | 3 4 | 4 5 | 5 6 | 6 7 | 7 8 | 8 9 | 9 10 | 10 11 | -------------------------------------------------------------------------------- /test/assert/out.input007.zc: -------------------------------------------------------------------------------- 1 | 1 2 | 2 3 | 3 4 | 4 5 | 5 6 | 6 7 | 7 8 | 8 9 | 9 10 | 10 11 | -------------------------------------------------------------------------------- /test/assert/out.input008.zc: -------------------------------------------------------------------------------- 1 | 1 2 | 2 3 | 3 4 | 4 5 | 5 6 | 6 7 | 7 8 | 8 9 | 9 10 | 10 11 | -------------------------------------------------------------------------------- /test/assert/out.input009.zc: -------------------------------------------------------------------------------- 1 | 1 2 | 2 3 | 3 4 | 4 5 | 5 6 | 6 7 | 7 8 | 8 9 | 9 10 | 10 11 | -------------------------------------------------------------------------------- /test/assert/out.input010.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/assert/out.input010.zc -------------------------------------------------------------------------------- /test/assert/out.input011.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/assert/out.input011.zc -------------------------------------------------------------------------------- /test/assert/out.input012.zc: -------------------------------------------------------------------------------- 1 | 5 2 | -------------------------------------------------------------------------------- /test/assert/out.input013.zc: -------------------------------------------------------------------------------- 1 | 23 2 | 56 3 | -------------------------------------------------------------------------------- /test/assert/out.input014.zc: -------------------------------------------------------------------------------- 1 | 10 2 | 20 3 | 30 4 | -------------------------------------------------------------------------------- /test/assert/out.input015.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/assert/out.input015.zc -------------------------------------------------------------------------------- /test/assert/out.input016.zc: -------------------------------------------------------------------------------- 1 | 12 2 | 18 3 | -------------------------------------------------------------------------------- /test/assert/out.input017.zc: -------------------------------------------------------------------------------- 1 | 19 2 | 12 3 | -------------------------------------------------------------------------------- /test/assert/out.input018.zc: -------------------------------------------------------------------------------- 1 | 34 2 | 34 3 | -------------------------------------------------------------------------------- /test/assert/out.input019.zc: -------------------------------------------------------------------------------- 1 | 30 2 | -------------------------------------------------------------------------------- /test/assert/out.input020.zc: -------------------------------------------------------------------------------- 1 | 12 2 | -------------------------------------------------------------------------------- /test/assert/out.input021.zc: -------------------------------------------------------------------------------- 1 | 10 2 | Hello world 3 | -------------------------------------------------------------------------------- /test/assert/out.input022.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/assert/out.input022.zc -------------------------------------------------------------------------------- /test/assert/out.input023.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/assert/out.input023.zc -------------------------------------------------------------------------------- /test/assert/out.input024.zc: -------------------------------------------------------------------------------- 1 | 2 2 | 59 3 | 57 4 | 8 5 | 7 6 | -------------------------------------------------------------------------------- /test/assert/out.input025.zc: -------------------------------------------------------------------------------- 1 | 10 2 | 20 3 | 30 4 | 5 5 | 15 6 | 25 7 | -------------------------------------------------------------------------------- /test/assert/out.input026.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/assert/out.input026.zc -------------------------------------------------------------------------------- /test/assert/out.input027.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/assert/out.input027.zc -------------------------------------------------------------------------------- /test/assert/out.input028.zc: -------------------------------------------------------------------------------- 1 | 1 2 | 2 3 | 3 4 | 5 5 | 8 6 | 13 7 | 21 8 | 34 9 | 9 10 | -------------------------------------------------------------------------------- /test/assert/out.input029.zc: -------------------------------------------------------------------------------- 1 | 1 2 | 2 3 | 3 4 | 5 5 | 8 6 | 13 7 | 21 8 | 34 9 | 9 10 | -------------------------------------------------------------------------------- /test/assert/out.input030.zc: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/assert/out.input053.zc: -------------------------------------------------------------------------------- 1 | Hello world, 23 2 | -------------------------------------------------------------------------------- /test/assert/out.input054.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/assert/out.input054.zc -------------------------------------------------------------------------------- /test/assert/out.input055.zc: -------------------------------------------------------------------------------- 1 | Hello world 2 | Argument 0 is ./out 3 | -------------------------------------------------------------------------------- /test/assert/out.input058.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/assert/out.input058.zc -------------------------------------------------------------------------------- /test/assert/out.input062.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/assert/out.input062.zc -------------------------------------------------------------------------------- /test/assert/out.input063.zc: -------------------------------------------------------------------------------- 1 | 25 2 | -------------------------------------------------------------------------------- /test/assert/out.input067.zc: -------------------------------------------------------------------------------- 1 | 5 2 | 17 3 | -------------------------------------------------------------------------------- /test/assert/out.input070.zc: -------------------------------------------------------------------------------- 1 | 56 2 | -------------------------------------------------------------------------------- /test/assert/out.input071.zc: -------------------------------------------------------------------------------- 1 | 0 2 | 1 3 | 2 4 | 3 5 | 4 6 | 7 7 | 8 8 | 9 9 | 10 10 | 11 11 | 12 12 | 13 13 | 14 14 | Done 15 | -------------------------------------------------------------------------------- /test/assert/out.input074.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/assert/out.input074.zc -------------------------------------------------------------------------------- /test/assert/out.input080.zc: -------------------------------------------------------------------------------- 1 | 0 1 2 | 1 3 3 | 2 5 4 | 3 7 5 | 4 9 6 | 5 11 7 | -------------------------------------------------------------------------------- /test/assert/out.input081.zc: -------------------------------------------------------------------------------- 1 | 0 1 2 | 1 3 3 | 2 5 4 | 3 7 5 | 4 9 6 | -------------------------------------------------------------------------------- /test/assert/out.input082.zc: -------------------------------------------------------------------------------- 1 | 15 >= x > 5 2 | -------------------------------------------------------------------------------- /test/assert/out.input083.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/assert/out.input083.zc -------------------------------------------------------------------------------- /test/assert/out.input084.zc: -------------------------------------------------------------------------------- 1 | 2 3 2 | f f 3 | -------------------------------------------------------------------------------- /test/assert/out.input088.zc: -------------------------------------------------------------------------------- 1 | 5 6 2 | -------------------------------------------------------------------------------- /test/assert/out.input089.zc: -------------------------------------------------------------------------------- 1 | 23 H Hello world 2 | -------------------------------------------------------------------------------- /test/assert/out.input090.zc: -------------------------------------------------------------------------------- 1 | 23 100 H Hello world 2 | -------------------------------------------------------------------------------- /test/assert/out.input091.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/assert/out.input091.zc -------------------------------------------------------------------------------- /test/assert/out.input099.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/assert/out.input099.zc -------------------------------------------------------------------------------- /test/assert/out.input100.zc: -------------------------------------------------------------------------------- 1 | Hello world 17 20 2 | -------------------------------------------------------------------------------- /test/assert/out.input101.zc: -------------------------------------------------------------------------------- 1 | 0xff 2 | 0x0 3 | -------------------------------------------------------------------------------- /test/assert/out.input106.zc: -------------------------------------------------------------------------------- 1 | 0x0 2 | -------------------------------------------------------------------------------- /test/assert/out.input107.zc: -------------------------------------------------------------------------------- 1 | fish 2 | cow 3 | NULL 4 | -------------------------------------------------------------------------------- /test/assert/out.input108.zc: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/assert/out.input109.zc: -------------------------------------------------------------------------------- 1 | 16 2 | -------------------------------------------------------------------------------- /test/assert/out.input110.zc: -------------------------------------------------------------------------------- 1 | 18 2 | 12 3 | 45 4 | 5 5 | -------------------------------------------------------------------------------- /test/assert/out.input111.zc: -------------------------------------------------------------------------------- 1 | 2029 2 | -------------------------------------------------------------------------------- /test/assert/out.input112.zc: -------------------------------------------------------------------------------- 1 | 16 2 | -------------------------------------------------------------------------------- /test/assert/out.input113.zc: -------------------------------------------------------------------------------- 1 | fred says hello 2 | -------------------------------------------------------------------------------- /test/assert/out.input114.zc: -------------------------------------------------------------------------------- 1 | J 2 | -------------------------------------------------------------------------------- /test/assert/out.input115.zc: -------------------------------------------------------------------------------- 1 | 1 2 | 4 3 | 8 4 | 8 5 | 13 6 | 64 7 | 48 8 | -------------------------------------------------------------------------------- /test/assert/out.input116.zc: -------------------------------------------------------------------------------- 1 | 0 2 | 1 3 | 2 4 | 3 5 | 4 6 | -------------------------------------------------------------------------------- /test/assert/out.input117.zc: -------------------------------------------------------------------------------- 1 | Hello 2 | -------------------------------------------------------------------------------- /test/assert/out.input119.zc: -------------------------------------------------------------------------------- 1 | 8 2 | 6 3 | -------------------------------------------------------------------------------- /test/assert/out.input120.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/assert/out.input120.zc -------------------------------------------------------------------------------- /test/assert/out.input121.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/assert/out.input121.zc -------------------------------------------------------------------------------- /test/assert/out.input122.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/assert/out.input122.zc -------------------------------------------------------------------------------- /test/assert/out.input123.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/assert/out.input123.zc -------------------------------------------------------------------------------- /test/assert/out.input125.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/assert/out.input125.zc -------------------------------------------------------------------------------- /test/assert/out.input127.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/assert/out.input127.zc -------------------------------------------------------------------------------- /test/assert/out.input128.zc: -------------------------------------------------------------------------------- 1 | 10 10 2 | 15 15 3 | 20 20 4 | -------------------------------------------------------------------------------- /test/assert/out.input130.zc: -------------------------------------------------------------------------------- 1 | Hello world 2 | -------------------------------------------------------------------------------- /test/assert/out.input131.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/assert/out.input131.zc -------------------------------------------------------------------------------- /test/assert/out.input132.zc: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/assert/out.input133.zc: -------------------------------------------------------------------------------- 1 | OK 2 | -------------------------------------------------------------------------------- /test/assert/out.input134.zc: -------------------------------------------------------------------------------- 1 | 1st match 2 | -------------------------------------------------------------------------------- /test/assert/out.input135.zc: -------------------------------------------------------------------------------- 1 | testing x 2 | -------------------------------------------------------------------------------- /test/assert/out.input136.zc: -------------------------------------------------------------------------------- 1 | -35 2 | -------------------------------------------------------------------------------- /test/assert/out.input137.zc: -------------------------------------------------------------------------------- 1 | x is 36 2 | -------------------------------------------------------------------------------- /test/assert/out.input138.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/assert/out.input138.zc -------------------------------------------------------------------------------- /test/assert/out.input139.zc: -------------------------------------------------------------------------------- 1 | same apparently 2 | -------------------------------------------------------------------------------- /test/assert/out.input140.zc: -------------------------------------------------------------------------------- 1 | 0 2 | 1 3 | 4 4 | 9 5 | 16 6 | 5 H 7 | -------------------------------------------------------------------------------- /test/assert/out.input143.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/assert/out.input143.zc -------------------------------------------------------------------------------- /test/assert/out.input144.zc: -------------------------------------------------------------------------------- 1 | Unable to open fred: Success 2 | -------------------------------------------------------------------------------- /test/assert/out.input145.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/assert/out.input145.zc -------------------------------------------------------------------------------- /test/assert/out.input146.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/assert/out.input146.zc -------------------------------------------------------------------------------- /test/assert/out.input147.zc: -------------------------------------------------------------------------------- 1 | 6 2 | 9 3 | 6 4 | 9 5 | -------------------------------------------------------------------------------- /test/assert/out.input148.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/assert/out.input148.zc -------------------------------------------------------------------------------- /test/assert/out.input149.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/assert/out.input149.zc -------------------------------------------------------------------------------- /test/assert/out.input150.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/assert/out.input150.zc -------------------------------------------------------------------------------- /test/assert/out.input151.zc: -------------------------------------------------------------------------------- 1 | testing x 2 | bar = 3 3 | -------------------------------------------------------------------------------- /test/assert/out.input152.zc: -------------------------------------------------------------------------------- 1 | fib(10) = 55 2 | -------------------------------------------------------------------------------- /test/assert/out.input153.zc: -------------------------------------------------------------------------------- 1 | x = 888 2 | -------------------------------------------------------------------------------- /test/error/error.input031.zc: -------------------------------------------------------------------------------- 1 | Expecting a primary expression, got token:+ on line 5 of input031.zc 2 | -------------------------------------------------------------------------------- /test/error/error.input032.zc: -------------------------------------------------------------------------------- 1 | Unknown variable or function:pizza on line 4 of input032.zc 2 | -------------------------------------------------------------------------------- /test/error/error.input033.zc: -------------------------------------------------------------------------------- 1 | Incompatible types to return on line 4 of input033.zc 2 | -------------------------------------------------------------------------------- /test/error/error.input035.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/error/error.input035.zc -------------------------------------------------------------------------------- /test/error/error.input036.zc: -------------------------------------------------------------------------------- 1 | Type doesn't match prototype for parameter:2 on line 4 of input036.zc 2 | -------------------------------------------------------------------------------- /test/error/error.input037.zc: -------------------------------------------------------------------------------- 1 | Expected:, on line 3 of input037.zc 2 | -------------------------------------------------------------------------------- /test/error/error.input038.zc: -------------------------------------------------------------------------------- 1 | Type doesn't match prototype for parameter:2 on line 4 of input038.zc 2 | -------------------------------------------------------------------------------- /test/error/error.input039.zc: -------------------------------------------------------------------------------- 1 | No statements in function with non-void type on line 4 of input039.zc 2 | -------------------------------------------------------------------------------- /test/error/error.input040.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/error/error.input040.zc -------------------------------------------------------------------------------- /test/error/error.input041.zc: -------------------------------------------------------------------------------- 1 | Can't return from a void function on line 3 of input041.zc 2 | -------------------------------------------------------------------------------- /test/error/error.input042.zc: -------------------------------------------------------------------------------- 1 | Unknown variable or function:fred on line 3 of input042.zc 2 | -------------------------------------------------------------------------------- /test/error/error.input043.zc: -------------------------------------------------------------------------------- 1 | Unknown variable or function:b on line 3 of input043.zc 2 | -------------------------------------------------------------------------------- /test/error/error.input044.zc: -------------------------------------------------------------------------------- 1 | Unknown variable or function:z on line 3 of input044.zc 2 | -------------------------------------------------------------------------------- /test/error/error.input045.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/error/error.input045.zc -------------------------------------------------------------------------------- /test/error/error.input046.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/error/error.input046.zc -------------------------------------------------------------------------------- /test/error/error.input047.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/error/error.input047.zc -------------------------------------------------------------------------------- /test/error/error.input048.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/error/error.input048.zc -------------------------------------------------------------------------------- /test/error/error.input049.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/error/error.input049.zc -------------------------------------------------------------------------------- /test/error/error.input050.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/error/error.input050.zc -------------------------------------------------------------------------------- /test/error/error.input051.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/error/error.input051.zc -------------------------------------------------------------------------------- /test/error/error.input052.zc: -------------------------------------------------------------------------------- 1 | Unrecognised character:$ on line 5 of input052.zc 2 | -------------------------------------------------------------------------------- /test/error/error.input056.zc: -------------------------------------------------------------------------------- 1 | Unknown struct/union type:var1 on line 2 of input056.zc 2 | -------------------------------------------------------------------------------- /test/error/error.input057.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/error/error.input057.zc -------------------------------------------------------------------------------- /test/error/error.input059.zc: -------------------------------------------------------------------------------- 1 | Unknown variable or function:y on line 3 of input059.zc 2 | -------------------------------------------------------------------------------- /test/error/error.input060.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/error/error.input060.zc -------------------------------------------------------------------------------- /test/error/error.input061.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/error/error.input061.zc -------------------------------------------------------------------------------- /test/error/error.input064.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/error/error.input064.zc -------------------------------------------------------------------------------- /test/error/error.input065.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/error/error.input065.zc -------------------------------------------------------------------------------- /test/error/error.input066.zc: -------------------------------------------------------------------------------- 1 | Enum value redeclared:z on line 2 of input066.zc 2 | -------------------------------------------------------------------------------- /test/error/error.input068.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/error/error.input068.zc -------------------------------------------------------------------------------- /test/error/error.input069.zc: -------------------------------------------------------------------------------- 1 | Unknown type:FLOO on line 2 of input069.zc 2 | -------------------------------------------------------------------------------- /test/error/error.input072.zc: -------------------------------------------------------------------------------- 1 | no loop or switch to break out from on line 1 of input072.zc 2 | -------------------------------------------------------------------------------- /test/error/error.input073.zc: -------------------------------------------------------------------------------- 1 | no loop to continue out from on line 1 of input073.zc 2 | -------------------------------------------------------------------------------- /test/error/error.input075.zc: -------------------------------------------------------------------------------- 1 | Unexpected token in switch:if on line 4 of input075.zc 2 | -------------------------------------------------------------------------------- /test/error/error.input076.zc: -------------------------------------------------------------------------------- 1 | No cases in switch on line 3 of input076.zc 2 | -------------------------------------------------------------------------------- /test/error/error.input077.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/error/error.input077.zc -------------------------------------------------------------------------------- /test/error/error.input078.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/error/error.input078.zc -------------------------------------------------------------------------------- /test/error/error.input079.zc: -------------------------------------------------------------------------------- 1 | Duplicate case value on line 6 of input079.zc 2 | -------------------------------------------------------------------------------- /test/error/error.input085.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/error/error.input085.zc -------------------------------------------------------------------------------- /test/error/error.input086.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/error/error.input086.zc -------------------------------------------------------------------------------- /test/error/error.input087.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/error/error.input087.zc -------------------------------------------------------------------------------- /test/error/error.input092.zc: -------------------------------------------------------------------------------- 1 | Type mismatch: literal vs. variable on line 1 of input092.zc 2 | -------------------------------------------------------------------------------- /test/error/error.input093.zc: -------------------------------------------------------------------------------- 1 | Unknown variable or function:fred on line 1 of input093.zc 2 | -------------------------------------------------------------------------------- /test/error/error.input094.zc: -------------------------------------------------------------------------------- 1 | Type mismatch: literal vs. variable on line 1 of input094.zc 2 | -------------------------------------------------------------------------------- /test/error/error.input095.zc: -------------------------------------------------------------------------------- 1 | Variable can not be initialised:x on line 1 of input095.zc 2 | -------------------------------------------------------------------------------- /test/error/error.input096.zc: -------------------------------------------------------------------------------- 1 | Array size is illegal:0 on line 1 of input096.zc 2 | -------------------------------------------------------------------------------- /test/error/error.input098.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/error/error.input098.zc -------------------------------------------------------------------------------- /test/error/error.input102.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/error/error.input102.zc -------------------------------------------------------------------------------- /test/error/error.input103.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/error/error.input103.zc -------------------------------------------------------------------------------- /test/error/error.input104.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/error/error.input104.zc -------------------------------------------------------------------------------- /test/error/error.input105.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/error/error.input105.zc -------------------------------------------------------------------------------- /test/error/error.input118.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/error/error.input118.zc -------------------------------------------------------------------------------- /test/error/error.input124.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/error/error.input124.zc -------------------------------------------------------------------------------- /test/error/error.input126.zc: -------------------------------------------------------------------------------- 1 | Unknown variable or function:ptr on line 7 of input126.zc 2 | -------------------------------------------------------------------------------- /test/error/error.input129.zc: -------------------------------------------------------------------------------- 1 | Cannot ++ and/or -- more than once on line 6 of input129.zc 2 | -------------------------------------------------------------------------------- /test/error/error.input141.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/error/error.input141.zc -------------------------------------------------------------------------------- /test/error/error.input142.zc: -------------------------------------------------------------------------------- 1 | Array must have non-zero elements:fred on line 1 of input142.zc 2 | -------------------------------------------------------------------------------- /test/input001.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/input001.zc -------------------------------------------------------------------------------- /test/input002.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/input002.zc -------------------------------------------------------------------------------- /test/input003.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/input003.zc -------------------------------------------------------------------------------- /test/input004.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/input004.zc -------------------------------------------------------------------------------- /test/input005.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/input005.zc -------------------------------------------------------------------------------- /test/input006.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/input006.zc -------------------------------------------------------------------------------- /test/input007.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/input007.zc -------------------------------------------------------------------------------- /test/input008.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/input008.zc -------------------------------------------------------------------------------- /test/input009.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/input009.zc -------------------------------------------------------------------------------- /test/input010.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/input010.zc -------------------------------------------------------------------------------- /test/input011.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/input011.zc -------------------------------------------------------------------------------- /test/input012.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/input012.zc -------------------------------------------------------------------------------- /test/input013.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/input013.zc -------------------------------------------------------------------------------- /test/input014.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/input014.zc -------------------------------------------------------------------------------- /test/input015.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/input015.zc -------------------------------------------------------------------------------- /test/input016.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/input016.zc -------------------------------------------------------------------------------- /test/input017.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/input017.zc -------------------------------------------------------------------------------- /test/input018.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/input018.zc -------------------------------------------------------------------------------- /test/input019.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/input019.zc -------------------------------------------------------------------------------- /test/input020.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/input020.zc -------------------------------------------------------------------------------- /test/input021.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/input021.zc -------------------------------------------------------------------------------- /test/input022.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/input022.zc -------------------------------------------------------------------------------- /test/input023.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/input023.zc -------------------------------------------------------------------------------- /test/input024.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/input024.zc -------------------------------------------------------------------------------- /test/input025.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/input025.zc -------------------------------------------------------------------------------- /test/input026.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/input026.zc -------------------------------------------------------------------------------- /test/input027.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/input027.zc -------------------------------------------------------------------------------- /test/input028.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/input028.zc -------------------------------------------------------------------------------- /test/input029.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/input029.zc -------------------------------------------------------------------------------- /test/input030.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/input030.zc -------------------------------------------------------------------------------- /test/input031.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/input031.zc -------------------------------------------------------------------------------- /test/input032.zc: -------------------------------------------------------------------------------- 1 | int printf(char *fmt); 2 | 3 | int main() { 4 | pizza cow llama sausage; 5 | } 6 | -------------------------------------------------------------------------------- /test/input033.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/input033.zc -------------------------------------------------------------------------------- /test/input035.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/input035.zc -------------------------------------------------------------------------------- /test/input036.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/input036.zc -------------------------------------------------------------------------------- /test/input037.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/input037.zc -------------------------------------------------------------------------------- /test/input038.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/input038.zc -------------------------------------------------------------------------------- /test/input039.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/input039.zc -------------------------------------------------------------------------------- /test/input040.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/input040.zc -------------------------------------------------------------------------------- /test/input041.zc: -------------------------------------------------------------------------------- 1 | int printf(char *fmt); 2 | 3 | void fred() { return(5); } 4 | -------------------------------------------------------------------------------- /test/input042.zc: -------------------------------------------------------------------------------- 1 | int printf(char *fmt); 2 | 3 | int main() { fred(5); } 4 | -------------------------------------------------------------------------------- /test/input043.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/input043.zc -------------------------------------------------------------------------------- /test/input044.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/input044.zc -------------------------------------------------------------------------------- /test/input045.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/input045.zc -------------------------------------------------------------------------------- /test/input046.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/input046.zc -------------------------------------------------------------------------------- /test/input047.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/input047.zc -------------------------------------------------------------------------------- /test/input048.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/input048.zc -------------------------------------------------------------------------------- /test/input049.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/input049.zc -------------------------------------------------------------------------------- /test/input050.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/input050.zc -------------------------------------------------------------------------------- /test/input051.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/input051.zc -------------------------------------------------------------------------------- /test/input052.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/input052.zc -------------------------------------------------------------------------------- /test/input053.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/input053.zc -------------------------------------------------------------------------------- /test/input054.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/input054.zc -------------------------------------------------------------------------------- /test/input055.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/input055.zc -------------------------------------------------------------------------------- /test/input056.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/input056.zc -------------------------------------------------------------------------------- /test/input057.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/input057.zc -------------------------------------------------------------------------------- /test/input058.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/input058.zc -------------------------------------------------------------------------------- /test/input059.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/input059.zc -------------------------------------------------------------------------------- /test/input060.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/input060.zc -------------------------------------------------------------------------------- /test/input061.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/input061.zc -------------------------------------------------------------------------------- /test/input062.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/input062.zc -------------------------------------------------------------------------------- /test/input063.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/input063.zc -------------------------------------------------------------------------------- /test/input064.zc: -------------------------------------------------------------------------------- 1 | enum fred var3; 2 | -------------------------------------------------------------------------------- /test/input065.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/input065.zc -------------------------------------------------------------------------------- /test/input066.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/input066.zc -------------------------------------------------------------------------------- /test/input067.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/input067.zc -------------------------------------------------------------------------------- /test/input068.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/input068.zc -------------------------------------------------------------------------------- /test/input069.zc: -------------------------------------------------------------------------------- 1 | typedef int FOO; 2 | FLOO y; 3 | -------------------------------------------------------------------------------- /test/input070.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/input070.zc -------------------------------------------------------------------------------- /test/input071.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/input071.zc -------------------------------------------------------------------------------- /test/input072.zc: -------------------------------------------------------------------------------- 1 | int main() { break; } 2 | -------------------------------------------------------------------------------- /test/input073.zc: -------------------------------------------------------------------------------- 1 | int main() { continue; } 2 | -------------------------------------------------------------------------------- /test/input074.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/input074.zc -------------------------------------------------------------------------------- /test/input075.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/input075.zc -------------------------------------------------------------------------------- /test/input076.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/input076.zc -------------------------------------------------------------------------------- /test/input077.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/input077.zc -------------------------------------------------------------------------------- /test/input078.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/input078.zc -------------------------------------------------------------------------------- /test/input079.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/input079.zc -------------------------------------------------------------------------------- /test/input080.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/input080.zc -------------------------------------------------------------------------------- /test/input081.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/input081.zc -------------------------------------------------------------------------------- /test/input082.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/input082.zc -------------------------------------------------------------------------------- /test/input083.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/input083.zc -------------------------------------------------------------------------------- /test/input084.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/input084.zc -------------------------------------------------------------------------------- /test/input085.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/input085.zc -------------------------------------------------------------------------------- /test/input086.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/input086.zc -------------------------------------------------------------------------------- /test/input087.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/input087.zc -------------------------------------------------------------------------------- /test/input088.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/input088.zc -------------------------------------------------------------------------------- /test/input089.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/input089.zc -------------------------------------------------------------------------------- /test/input090.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/input090.zc -------------------------------------------------------------------------------- /test/input091.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/input091.zc -------------------------------------------------------------------------------- /test/input092.zc: -------------------------------------------------------------------------------- 1 | char x= 3000; 2 | -------------------------------------------------------------------------------- /test/input093.zc: -------------------------------------------------------------------------------- 1 | char x= fred; 2 | -------------------------------------------------------------------------------- /test/input094.zc: -------------------------------------------------------------------------------- 1 | char *s= 54; 2 | -------------------------------------------------------------------------------- /test/input095.zc: -------------------------------------------------------------------------------- 1 | int fred(int x=2) { return(x); } 2 | -------------------------------------------------------------------------------- /test/input096.zc: -------------------------------------------------------------------------------- 1 | int fred[0]; 2 | -------------------------------------------------------------------------------- /test/input098.zc: -------------------------------------------------------------------------------- 1 | int fred[3]= { 1, 2, 3, 4, 5 }; 2 | -------------------------------------------------------------------------------- /test/input099.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/input099.zc -------------------------------------------------------------------------------- /test/input100.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/input100.zc -------------------------------------------------------------------------------- /test/input101.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/input101.zc -------------------------------------------------------------------------------- /test/input102.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/input102.zc -------------------------------------------------------------------------------- /test/input103.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/input103.zc -------------------------------------------------------------------------------- /test/input104.zc: -------------------------------------------------------------------------------- 1 | int main() { 2 | int y= (void) x; 3 | } 4 | -------------------------------------------------------------------------------- /test/input105.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/input105.zc -------------------------------------------------------------------------------- /test/input106.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/input106.zc -------------------------------------------------------------------------------- /test/input107.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/input107.zc -------------------------------------------------------------------------------- /test/input108.zc: -------------------------------------------------------------------------------- 1 | int main() { 2 | char *str= (void *)0; 3 | return(0); 4 | } 5 | -------------------------------------------------------------------------------- /test/input109.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/input109.zc -------------------------------------------------------------------------------- /test/input110.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/input110.zc -------------------------------------------------------------------------------- /test/input111.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/input111.zc -------------------------------------------------------------------------------- /test/input112.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/input112.zc -------------------------------------------------------------------------------- /test/input113.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/input113.zc -------------------------------------------------------------------------------- /test/input114.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/input114.zc -------------------------------------------------------------------------------- /test/input115.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/input115.zc -------------------------------------------------------------------------------- /test/input116.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/input116.zc -------------------------------------------------------------------------------- /test/input117.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/input117.zc -------------------------------------------------------------------------------- /test/input118.zc: -------------------------------------------------------------------------------- 1 | int main(void) { 2 | static int x; 3 | } 4 | -------------------------------------------------------------------------------- /test/input119.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/input119.zc -------------------------------------------------------------------------------- /test/input120.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/input120.zc -------------------------------------------------------------------------------- /test/input121.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/input121.zc -------------------------------------------------------------------------------- /test/input122.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/input122.zc -------------------------------------------------------------------------------- /test/input123.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/input123.zc -------------------------------------------------------------------------------- /test/input124.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/input124.zc -------------------------------------------------------------------------------- /test/input125.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/input125.zc -------------------------------------------------------------------------------- /test/input126.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/input126.zc -------------------------------------------------------------------------------- /test/input127.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/input127.zc -------------------------------------------------------------------------------- /test/input128.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/input128.zc -------------------------------------------------------------------------------- /test/input129.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/input129.zc -------------------------------------------------------------------------------- /test/input130.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/input130.zc -------------------------------------------------------------------------------- /test/input131.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/input131.zc -------------------------------------------------------------------------------- /test/input132.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/input132.zc -------------------------------------------------------------------------------- /test/input133.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/input133.zc -------------------------------------------------------------------------------- /test/input134.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/input134.zc -------------------------------------------------------------------------------- /test/input135.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/input135.zc -------------------------------------------------------------------------------- /test/input136.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/input136.zc -------------------------------------------------------------------------------- /test/input137.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/input137.zc -------------------------------------------------------------------------------- /test/input138.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/input138.zc -------------------------------------------------------------------------------- /test/input139.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/input139.zc -------------------------------------------------------------------------------- /test/input140.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/input140.zc -------------------------------------------------------------------------------- /test/input141.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/input141.zc -------------------------------------------------------------------------------- /test/input142.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/input142.zc -------------------------------------------------------------------------------- /test/input143.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/input143.zc -------------------------------------------------------------------------------- /test/input144.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/input144.zc -------------------------------------------------------------------------------- /test/input145.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/input145.zc -------------------------------------------------------------------------------- /test/input146.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/input146.zc -------------------------------------------------------------------------------- /test/input147.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/input147.zc -------------------------------------------------------------------------------- /test/input148.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/input148.zc -------------------------------------------------------------------------------- /test/input149.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/input149.zc -------------------------------------------------------------------------------- /test/input150.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/input150.zc -------------------------------------------------------------------------------- /test/input151.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/input151.zc -------------------------------------------------------------------------------- /test/input152.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/input152.zc -------------------------------------------------------------------------------- /test/input153.zc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/input153.zc -------------------------------------------------------------------------------- /test/make_test: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/make_test -------------------------------------------------------------------------------- /test/run_test: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/test/run_test -------------------------------------------------------------------------------- /types.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/types.c -------------------------------------------------------------------------------- /types.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/strugglebak/zcc/HEAD/types.h --------------------------------------------------------------------------------