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