add: tests for zero-parser.

This commit is contained in:
2024-11-19 19:08:05 +08:00
parent a282ad8f24
commit 91c6c42a02
227 changed files with 7797 additions and 0 deletions

18
sysy_sets/23_if_test4.sy Executable file
View File

@@ -0,0 +1,18 @@
// test if-{if-else}
int if_ifElse_() {
int a;
a = 5;
int b;
b = 10;
if(a == 5){
if (b == 10)
a = 25;
else
a = a + 15;
}
return (a);
}
int main(){
return (if_ifElse_());
}