diff options
Diffstat (limited to 'tests/sysy_lvX/055_hex_oct_add.sy')
| -rw-r--r-- | tests/sysy_lvX/055_hex_oct_add.sy | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/sysy_lvX/055_hex_oct_add.sy b/tests/sysy_lvX/055_hex_oct_add.sy new file mode 100644 index 0000000..545a8cd --- /dev/null +++ b/tests/sysy_lvX/055_hex_oct_add.sy @@ -0,0 +1,7 @@ +//test add of hex and oct +int main(){ + int a, b; + a = 0xf; + b = 0xc; + return a + b + 075; +}
\ No newline at end of file |
