gcc/testsuite/gcc.c-torture/compile/pr65595.c
raw| 1 | extern void *memcpy(void *, const void *, __SIZE_TYPE__); |
| 2 | struct in6_addr { |
| 3 | struct { |
| 4 | int u6_addr32[4]; |
| 5 | }; |
| 6 | }; |
| 7 | struct foo { |
| 8 | struct in6_addr daddr; |
| 9 | struct in6_addr saddr; |
| 10 | } a; |
| 11 | extern void ip6_route_output(struct foo, int); |
| 12 | int b; |
| 13 | static void find_route_ipv6(struct in6_addr *p1) { |
| 14 | if (p1) |
| 15 | memcpy(0, p1, sizeof(struct in6_addr)); |
| 16 | ip6_route_output(a, b); |
| 17 | } |
| 18 | void cxgbi_ep_connect() { find_route_ipv6(0); } |
| 19 |