mirror of
https://gitlab.com/camelot/kickc.git
synced 2024-12-24 20:32:39 +00:00
Added failing test for for(;;).
This commit is contained in:
parent
a74d02203e
commit
837ce228ac
@ -42,6 +42,11 @@ public class TestPrograms {
|
||||
public TestPrograms() {
|
||||
}
|
||||
|
||||
//@Test
|
||||
//public void testForEver() throws IOException, URISyntaxException {
|
||||
// compileAndCompare("for-ever.c");
|
||||
//}
|
||||
|
||||
@Test
|
||||
public void testPointerToPointerProblem() throws IOException, URISyntaxException {
|
||||
compileAndCompare("pointer-to-pointer-problem.c");
|
||||
|
@ -8,7 +8,7 @@
|
||||
#include <nes.h>
|
||||
#include <string.h>
|
||||
#include "lazynes.c"
|
||||
#include "lazyhello.c"
|
||||
#include "balloon.c"
|
||||
|
||||
// RESET Called when the NES is reset, including when it is turned on.
|
||||
void main() {
|
||||
|
9
src/test/kc/for-ever.c
Normal file
9
src/test/kc/for-ever.c
Normal file
@ -0,0 +1,9 @@
|
||||
// Test a for() loop that runs forever
|
||||
|
||||
char * const SCREEN = 0x0400;
|
||||
|
||||
void main() {
|
||||
for (;;) {
|
||||
(*SCREEN)++;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user