aboutsummaryrefslogtreecommitdiff
path: root/tests/functional/08_const_array_defn.sy
diff options
context:
space:
mode:
Diffstat (limited to 'tests/functional/08_const_array_defn.sy')
-rw-r--r--tests/functional/08_const_array_defn.sy5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/functional/08_const_array_defn.sy b/tests/functional/08_const_array_defn.sy
new file mode 100644
index 0000000..4238a31
--- /dev/null
+++ b/tests/functional/08_const_array_defn.sy
@@ -0,0 +1,5 @@
+const int a[5]={0,1,2,3,4};
+
+int main(){
+ return a[4];
+} \ No newline at end of file