aboutsummaryrefslogtreecommitdiff
path: root/tests/sysy_lvX/006_const_def.sy
diff options
context:
space:
mode:
Diffstat (limited to 'tests/sysy_lvX/006_const_def.sy')
-rw-r--r--tests/sysy_lvX/006_const_def.sy7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/sysy_lvX/006_const_def.sy b/tests/sysy_lvX/006_const_def.sy
new file mode 100644
index 0000000..198742f
--- /dev/null
+++ b/tests/sysy_lvX/006_const_def.sy
@@ -0,0 +1,7 @@
+int main()
+{
+ const int a = 1;
+ const int b = 2, c = 3;
+ const int d = 4;
+ return c;
+} \ No newline at end of file