aboutsummaryrefslogtreecommitdiff
path: root/tests/sysy_lvX/031_if2.sy
diff options
context:
space:
mode:
Diffstat (limited to 'tests/sysy_lvX/031_if2.sy')
-rw-r--r--tests/sysy_lvX/031_if2.sy9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/sysy_lvX/031_if2.sy b/tests/sysy_lvX/031_if2.sy
new file mode 100644
index 0000000..ccd5de7
--- /dev/null
+++ b/tests/sysy_lvX/031_if2.sy
@@ -0,0 +1,9 @@
+//test if
+int main(){
+ int a;
+ a = 5;
+ if(a == 10){
+ return a;
+ }
+ return a;
+} \ No newline at end of file