Add new tests to help debugging

This commit is contained in:
Curle 2020-09-13 02:26:18 +01:00
parent c2b396b853
commit 822376d142
Signed by: TheCurle
GPG Key ID: 2F2E62F0DA69A5AE
5 changed files with 45 additions and 2 deletions

View File

@ -1,4 +1,4 @@
{ void :: main() {
int x; int x;
x = 0; x = 0;

View File

@ -11,5 +11,6 @@ void :: main() {
PrintInteger(Result); PrintInteger(Result);
PrintInteger(Testings(10) + 10); PrintInteger(Testings(10) + i);
} }

19
tests/funcs3 Normal file
View File

@ -0,0 +1,19 @@
int :: Testings() {
return (40);
}
void :: main() {
int Result;
PrintInteger(10);
Result = Testings(10);
PrintInteger(Result);
int i;
for(i = 0; i < 5; i = i + 1) {
PrintInteger(Testings(10) + i);
}
}

10
tests/funcs4 Normal file
View File

@ -0,0 +1,10 @@
void :: main() {
int i;
for(i = 0; i < 5; i = i + 1) {
PrintInteger(i);
}
}

13
tests/print Normal file
View File

@ -0,0 +1,13 @@
void :: main() {
int x;
int y;
int m;
x = 5;
y = 50;
m = 300;
print m;
print y;
print x;
}