diff --git a/src/test/java/dk/camelot64/kickc/test/TestPrograms.java b/src/test/java/dk/camelot64/kickc/test/TestPrograms.java index 712abf726..b66eca0f1 100644 --- a/src/test/java/dk/camelot64/kickc/test/TestPrograms.java +++ b/src/test/java/dk/camelot64/kickc/test/TestPrograms.java @@ -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"); diff --git a/src/test/kc/complex/lazynes/lazymain.c b/src/test/kc/complex/lazynes/lazymain.c index b5b563f15..f10fb5c83 100644 --- a/src/test/kc/complex/lazynes/lazymain.c +++ b/src/test/kc/complex/lazynes/lazymain.c @@ -8,7 +8,7 @@ #include #include #include "lazynes.c" -#include "lazyhello.c" +#include "balloon.c" // RESET Called when the NES is reset, including when it is turned on. void main() { diff --git a/src/test/kc/for-ever.c b/src/test/kc/for-ever.c new file mode 100644 index 000000000..e3089ca5e --- /dev/null +++ b/src/test/kc/for-ever.c @@ -0,0 +1,9 @@ +// Test a for() loop that runs forever + +char * const SCREEN = 0x0400; + +void main() { + for (;;) { + (*SCREEN)++; + } +} \ No newline at end of file