diff options
Diffstat (limited to 'tests/functional/19_neg_expr.sy')
| -rw-r--r-- | tests/functional/19_neg_expr.sy | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/functional/19_neg_expr.sy b/tests/functional/19_neg_expr.sy new file mode 100644 index 0000000..10f53f6 --- /dev/null +++ b/tests/functional/19_neg_expr.sy @@ -0,0 +1,10 @@ +int a; +int b; +int main(){ + a = getint(); + b = getint(); + int c; + c = -(a + b); + putint(c); + return 0; +} |
