1
0
mirror of https://gitlab.com/camelot/kickc.git synced 2025-08-08 13:25:12 +00:00

Fixed problem with auto-casting parameters. Closes #299

This commit is contained in:
jespergravgaard
2021-05-13 11:42:07 +02:00
parent 541b92c55b
commit 3ad844ada1
2 changed files with 2 additions and 7 deletions

View File

@@ -1289,19 +1289,15 @@ public class TestProgramsFast extends TestPrograms {
compileAndCompare("string-pointer-problem.c"); compileAndCompare("string-pointer-problem.c");
} }
@Test @Test
public void testZpCode() throws IOException { public void testZpCode() throws IOException {
compileAndCompare("examples/c64/zpcode/zpcode.c"); compileAndCompare("examples/c64/zpcode/zpcode.c");
} }
// Fix parameter type problem - https://gitlab.com/camelot/kickc/issues/299
/*
@Test @Test
public void testParameterAutocastWrong() throws IOException { public void testParameterAutocastWrong() throws IOException {
compileAndCompare("parameter-autocast-wrong.c"); assertError("parameter-autocast-wrong.c", "Parameters type mismatch in call");
} }
*/
@Test @Test
public void testConstBool0() throws IOException { public void testConstBool0() throws IOException {

View File

@@ -1,5 +1,4 @@
// Illustrates problem with wrong autocasting of parameters // Illustrates problem with wrong type of parameters
// Program wrongly reports Unknown fragment error - while it should have reported type problem (char != char*)
char message[] = "CHAO0029 OPERATING SYSTEM STARTING..."; char message[] = "CHAO0029 OPERATING SYSTEM STARTING...";