mirror of
https://github.com/frida/tinycc
synced 2024-11-28 18:43:07 +03:00
85483f321d
which checks that a declaration after TCC implicitely declares an internally used function (memmove here) doesn't create any problem.
21 lines
367 B
C
21 lines
367 B
C
/* 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*,void*,long);
|
|
void foo2 (struct S *a, struct S *b)
|
|
{
|
|
memmove(a, b, sizeof *a);
|
|
}
|
|
|
|
int main()
|
|
{
|
|
return 0;
|
|
}
|