1
0
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:
jespergravgaard 2018-08-22 02:45:38 +02:00
parent a78960a823
commit 5fe09eefde
3 changed files with 17 additions and 3421 deletions

View File

@ -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");

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