1
0
mirror of https://gitlab.com/camelot/kickc.git synced 2024-12-22 21:29:50 +00:00

Added test.

This commit is contained in:
jespergravgaard 2021-07-03 00:21:22 +02:00
parent 6e80a72cc2
commit 72c5c7d537
2 changed files with 11 additions and 0 deletions

View File

@ -9,6 +9,11 @@ import java.io.IOException;
*/
public class TestProgramsFast extends TestPrograms {
@Test
public void testMakeLong42() throws IOException {
assertError("makelong4-2.c", "Wrong number of parameters in call. Expected 4.");
}
@Test
public void testMakeLong41() throws IOException {
compileAndCompare("makelong4-1.c");

View 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);
}