Mostly implemented Simultaneous Declaration, only template instantation during pass 2 remains to be implemented
This commit is contained in:
17
tests/functionOrderingTest.krak
Normal file
17
tests/functionOrderingTest.krak
Normal file
@@ -0,0 +1,17 @@
|
||||
import io;
|
||||
|
||||
int ret1() {
|
||||
return ret2() / 2;
|
||||
}
|
||||
|
||||
|
||||
int main() {
|
||||
print(ret1());
|
||||
print(ret2());
|
||||
print("\n");
|
||||
return 0;
|
||||
}
|
||||
|
||||
int ret2() {
|
||||
return 2;
|
||||
}
|
||||
Reference in New Issue
Block a user