1
0
mirror of https://gitlab.com/camelot/kickc.git synced 2024-08-03 01:29:04 +00:00

Working on static initialization rewrite _init(). #257

This commit is contained in:
jespergravgaard 2020-06-21 11:19:32 +02:00
parent a989e63f5b
commit 804d39cf0a
2 changed files with 3 additions and 2 deletions

View File

@ -96,7 +96,8 @@ public class PassNBlockSequencePlanner extends Pass2SsaOptimization {
Scope blockScope = getScope().getSymbol(blockRef).getScope();
for(ScopeTodo todoScope : todoScopes) {
if(todoScope.scope.equals(blockScope)) {
todoScope.addTodo(block);
// TODO: Fix procedure sequence by using todoScope.addTodo(block);
todoScope.pushTodo(block);
return;
}
}

View File

@ -1184,7 +1184,7 @@ public class TestPrograms {
}
@Test
public void testEuclid2() throws IOException, URISyntaxException {
public void testEuclid3() throws IOException, URISyntaxException {
compileAndCompare("euclid-3.c");
}