mirror of
https://gitlab.com/camelot/kickc.git
synced 2025-02-04 00:30:43 +00:00
Working on static initialization rewrite _init(). #257
This commit is contained in:
parent
a989e63f5b
commit
804d39cf0a
@ -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;
|
||||
}
|
||||
}
|
||||
|
@ -1184,7 +1184,7 @@ public class TestPrograms {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testEuclid2() throws IOException, URISyntaxException {
|
||||
public void testEuclid3() throws IOException, URISyntaxException {
|
||||
compileAndCompare("euclid-3.c");
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user