Add skeleton for arrays in IR

This commit is contained in:
Jeehoon Kang
2020-04-01 23:44:37 +09:00
parent 93a1d767a5
commit cef3fb7650
8 changed files with 95 additions and 11 deletions

13
examples/array3.c Normal file
View File

@@ -0,0 +1,13 @@
int* foo(int a[10]){
return a;
}
int main() {
int a[10];
for (int i = 0; i < 10; i++) {
(foo(a))[i] = i;
}
return a[5] == 5;
}