2019-04-18 01:39:40 +00:00
|
|
|
/* Test that the memmove TCC is emitting for the struct copy
|
|
|
|
and hence implicitely declares can be declared properly also
|
|
|
|
later. */
|
|
|
|
struct S { int a,b,c,d, e[1024];};
|
|
|
|
int foo (struct S *a, struct S *b)
|
|
|
|
{
|
|
|
|
*a = *b;
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2020-08-13 09:19:11 +00:00
|
|
|
void *memmove(void*,const void*,__SIZE_TYPE__);
|
2019-04-18 01:39:40 +00:00
|
|
|
void foo2 (struct S *a, struct S *b)
|
|
|
|
{
|
|
|
|
memmove(a, b, sizeof *a);
|
|
|
|
}
|
|
|
|
|
|
|
|
int main()
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|