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