aboutsummaryrefslogtreecommitdiff
path: root/tests/sysy_lvX/050_unary_op2.sy
diff options
context:
space:
mode:
Diffstat (limited to 'tests/sysy_lvX/050_unary_op2.sy')
-rw-r--r--tests/sysy_lvX/050_unary_op2.sy14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/sysy_lvX/050_unary_op2.sy b/tests/sysy_lvX/050_unary_op2.sy
new file mode 100644
index 0000000..a824266
--- /dev/null
+++ b/tests/sysy_lvX/050_unary_op2.sy
@@ -0,0 +1,14 @@
+int main() {
+ int a, b;
+ a = 070;
+ b = 0x4;
+ a = a - - 4 + + b;
+ if (+-!!!a) {
+ a = - - -1;
+ }
+ else {
+ a = 0 + + b;
+ }
+ putint(a);
+ return 0;
+} \ No newline at end of file