diff options
Diffstat (limited to 'tests/sysy_lvX/051_int_function.sy')
| -rw-r--r-- | tests/sysy_lvX/051_int_function.sy | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/sysy_lvX/051_int_function.sy b/tests/sysy_lvX/051_int_function.sy new file mode 100644 index 0000000..b2c2682 --- /dev/null +++ b/tests/sysy_lvX/051_int_function.sy @@ -0,0 +1,10 @@ +//test int function +int f(){ + return 3; +} + +int main(){ + int a; + a = f(); + return a; +}
\ No newline at end of file |
