aboutsummaryrefslogtreecommitdiff
path: root/tests/sysy_lvX/009_const_var_defn2.sy
diff options
context:
space:
mode:
Diffstat (limited to 'tests/sysy_lvX/009_const_var_defn2.sy')
-rw-r--r--tests/sysy_lvX/009_const_var_defn2.sy6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/sysy_lvX/009_const_var_defn2.sy b/tests/sysy_lvX/009_const_var_defn2.sy
new file mode 100644
index 0000000..333801c
--- /dev/null
+++ b/tests/sysy_lvX/009_const_var_defn2.sy
@@ -0,0 +1,6 @@
+//test const gloal var define
+const int a = 10, b = 5;
+
+int main(){
+ return b;
+} \ No newline at end of file