blob: 1592fb2589e6f4dd65db6888562d3dd2cd5f2adf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
/* 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;
}
void *memmove(void*,const void*,__SIZE_TYPE__);
void foo2 (struct S *a, struct S *b)
{
memmove(a, b, sizeof *a);
}
int main()
{
return 0;
}
|