mirror of
https://gitlab.com/camelot/kickc.git
synced 2024-12-23 13:31:12 +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 {
|
||||
|
||||
@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");
|
||||
|
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