Updated to fedora-glibc-20090416T0610
[glibc/history.git] / posix / bug-ga1.c
blobc46ab43fd12acc759a2308a87562a10bc10af3fd
1 /* Test case by Anders Carlsson <andersca@gnome.org>. */
2 #include <sys/types.h>
3 #include <sys/socket.h>
4 #include <netdb.h>
5 #include <stdio.h>
6 #include <string.h>
8 int
9 main (void)
11 struct addrinfo req, *ai;
12 char name[] = "3ffe:0200:0064:0000:0202:b3ff:fe16:ddc5";
14 memset (&req, '\0', sizeof req);
15 req.ai_family = AF_INET6;
17 /* This call used to crash. We cannot expect the test machine to have
18 IPv6 enabled so we just check that the call returns. */
19 getaddrinfo (name, NULL, &req, &ai);
21 puts ("success!");
22 return 0;