mirror of
https://gitlab.com/camelot/kickc.git
synced 2024-12-24 20:32:39 +00:00
Added test.
This commit is contained in:
parent
6e80a72cc2
commit
72c5c7d537
@ -9,6 +9,11 @@ import java.io.IOException;
|
|||||||
*/
|
*/
|
||||||
public class TestProgramsFast extends TestPrograms {
|
public class TestProgramsFast extends TestPrograms {
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void testMakeLong42() throws IOException {
|
||||||
|
assertError("makelong4-2.c", "Wrong number of parameters in call. Expected 4.");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testMakeLong41() throws IOException {
|
public void testMakeLong41() throws IOException {
|
||||||
compileAndCompare("makelong4-1.c");
|
compileAndCompare("makelong4-1.c");
|
||||||
|
6
src/test/kc/makelong4-2.c
Normal file
6
src/test/kc/makelong4-2.c
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
// Test MAKELONG4() with to few parameters
|
||||||
|
|
||||||
|
void main() {
|
||||||
|
unsigned long* const SCREEN = (unsigned int*)0x0400;
|
||||||
|
*SCREEN = MAKELONG4(1, 2, 3);
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user