source: vendor/glibc-tests/glibc/posix/bug-ga1.c

Last change on this file was 2036, checked in by bird, 20 years ago

Initial revision

  • Property cvs2svn:cvs-rev set to 1.1
  • Property svn:eol-style set to native
  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 544 bytes
Line 
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>
7
8int
9main (void)
10{
11 struct addrinfo req, *ai;
12 char name[] = "3ffe:0200:0064:0000:0202:b3ff:fe16:ddc5";
13
14 memset (&req, '\0', sizeof req);
15 req.ai_family = AF_INET6;
16
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);
20
21 puts ("success!");
22 return 0;
23}
Note: See TracBrowser for help on using the repository browser.