diff options
Diffstat (limited to 'tests/sysy_lvX/100_op_priority4.sy')
| -rw-r--r-- | tests/sysy_lvX/100_op_priority4.sy | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/sysy_lvX/100_op_priority4.sy b/tests/sysy_lvX/100_op_priority4.sy new file mode 100644 index 0000000..3982663 --- /dev/null +++ b/tests/sysy_lvX/100_op_priority4.sy @@ -0,0 +1,6 @@ +//test the priority of unary operator and binary operator +int main(){ + int a; + a = 10; + return a + -5; +}
\ No newline at end of file |
