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:
@@ -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 {
|
||||||
|
@@ -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...";
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user