mirror of
https://gitlab.com/camelot/kickc.git
synced 2024-11-03 12:07:26 +00:00
Fixed test ref (and added failing infinite unroll loop)
This commit is contained in:
parent
a78960a823
commit
5fe09eefde
@ -46,6 +46,11 @@ public class TestPrograms {
|
||||
AsmFragmentTemplateUsages.logUsages(log, false, false, false, false, false, false);
|
||||
}
|
||||
|
||||
//@Test
|
||||
//public void testUnrollInfinite() throws IOException, URISyntaxException {
|
||||
// compileAndCompare("unroll-infinite");
|
||||
//}
|
||||
|
||||
@Test
|
||||
public void testUnusedBlockProblem() throws IOException, URISyntaxException {
|
||||
compileAndCompare("unusedblockproblem");
|
||||
|
12
src/test/java/dk/camelot64/kickc/test/kc/unroll-infinite.kc
Normal file
12
src/test/java/dk/camelot64/kickc/test/kc/unroll-infinite.kc
Normal file
@ -0,0 +1,12 @@
|
||||
// Unrolling an infinite loop
|
||||
|
||||
void main() {
|
||||
byte* SCREEN = $400;
|
||||
|
||||
byte b=0;
|
||||
inline do {
|
||||
*SCREEN = b;
|
||||
b = *SCREEN;
|
||||
} while(b<10);
|
||||
|
||||
}
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user