projects
/
cparser
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
really fix cp_error035
[cparser]
/
parsetest
/
vla.c
diff --git
a/parsetest/vla.c
b/parsetest/vla.c
index
817eb80
..
c8ec690
100644
(file)
--- a/
parsetest/vla.c
+++ b/
parsetest/vla.c
@@
-1,4
+1,5
@@
int puts(const char *str);
int puts(const char *str);
+void *memcpy(void *dest, const void *src, unsigned int n);
int get_size(void)
{
int get_size(void)
{
@@
-12,6
+13,8
@@
int get_size2(void)
return 10;
}
return 10;
}
+int gk[10];
+
int main(int argc, char **argv)
{
int k[get_size()];
int main(int argc, char **argv)
{
int k[get_size()];
@@
-26,5
+29,9
@@
int main(int argc, char **argv)
sizeof(c[puts("effect2")][puts("but not this time")]);
sizeof(z[puts("no effect")]);
sizeof(c[puts("effect2")][puts("but not this time")]);
sizeof(z[puts("no effect")]);
+ k[5] = 42;
+ k[2] = 10;
+ memcpy(gk, k, sizeof(gk));
+
return 0;
}
return 0;
}