Initial commit from sysy-main
This commit is contained in:
13
test/11_add2.sy
Normal file
13
test/11_add2.sy
Normal file
@ -0,0 +1,13 @@
|
||||
//test add
|
||||
|
||||
int mul(int x, int y) {
|
||||
return x * y;
|
||||
}
|
||||
|
||||
int main(){
|
||||
int a, b;
|
||||
a = 10;
|
||||
b = 0;
|
||||
a = mul(a, b);
|
||||
return a + b;
|
||||
}
|
||||
Reference in New Issue
Block a user