struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tcc / 103_implicit_memmove.c
blob1592fb2589e6f4dd65db6888562d3dd2cd5f2adf
1 /* Test that the memmove TCC is emitting for the struct copy
2 and hence implicitely declares can be declared properly also
3 later. */
4 struct S { int a,b,c,d, e[1024];};
5 int foo (struct S *a, struct S *b)
7 *a = *b;
8 return 0;
11 void *memmove(void*,const void*,__SIZE_TYPE__);
12 void foo2 (struct S *a, struct S *b)
14 memmove(a, b, sizeof *a);
17 int main()
19 return 0;