projects
/
cparser
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
aae813cd521b7526d9d1ded9512fad3c5bc99acd
[cparser]
/
parsetest
/
vla.c
1
int puts(const char *str);
2
3
int get_size(void)
4
{
5
puts("sideeffect");
6
return 10;
7
}
8
9
int get_size2(void)
10
{
11
puts("sideeffect2");
12
return 10;
13
}
14
15
int main(int argc, char **argv)
16
{
17
int k[get_size()];
18
int c[argc][argc];
19
int z[10];
20
21
if(sizeof(k)/sizeof(int) != 10)
22
return 1;
23
if(sizeof(int[get_size2()])/sizeof(int) != 10)
24
return 2;
25
sizeof(c[puts("effect")]);
26
sizeof(z[puts("no effect")]);
27
28
return 0;
29
}