diff options
Diffstat (limited to 'tests/sysy_lvX/046_or.sy')
| -rw-r--r-- | tests/sysy_lvX/046_or.sy | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/sysy_lvX/046_or.sy b/tests/sysy_lvX/046_or.sy new file mode 100644 index 0000000..1d74550 --- /dev/null +++ b/tests/sysy_lvX/046_or.sy @@ -0,0 +1,7 @@ +//test or +int main(){ + int a, b; + a = 5 * 3 + 1; + if (a == 10 || a == 16) b = 1; else b = 0; + return a + b; +}
\ No newline at end of file |
