summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/pr34885.c
blob: f5a3c13b57250c482fc7f6e1ea1bd73224e476ed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
typedef union {
  __const struct sockaddr *__restrict __sockaddr__;
} __CONST_SOCKADDR_ARG __attribute__ ((__transparent_union__));
extern int _pure_socketcall (const struct sockaddr *);
extern int sendto (__CONST_SOCKADDR_ARG __addr);
int send(void)
{
  return sendto((void *)0);
}
int sendto(const struct sockaddr *to)
{
   return _pure_socketcall(to);
}