1
0
mirror of https://gitlab.com/camelot/kickc.git synced 2024-12-26 18:29:54 +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");
}
@Test
public void testZpCode() throws IOException {
compileAndCompare("examples/c64/zpcode/zpcode.c");
}
// Fix parameter type problem - https://gitlab.com/camelot/kickc/issues/299
/*
@Test
public void testParameterAutocastWrong() throws IOException {
compileAndCompare("parameter-autocast-wrong.c");
assertError("parameter-autocast-wrong.c", "Parameters type mismatch in call");
}
*/
@Test
public void testConstBool0() throws IOException {

View File

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