From 380f06d3979d9608b4b9abb0540e6832adac004a Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Mon, 16 Feb 2004 19:07:47 +0000 Subject: Update. * posix/Makefile (tests): Add bug-ga1. * posix/bug-ga1.c: New file. --- posix/bug-ga1.c | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 posix/bug-ga1.c (limited to 'posix/bug-ga1.c') diff --git a/posix/bug-ga1.c b/posix/bug-ga1.c new file mode 100644 index 0000000000..39e45d7845 --- /dev/null +++ b/posix/bug-ga1.c @@ -0,0 +1,22 @@ +/* Test case by Anders Carlsson . */ +#include +#include +#include +#include + +int +main (void) +{ + struct addrinfo req, *ai; + char name[] = "3ffe:0200:0064:0000:0202:b3ff:fe16:ddc5"; + + memset (&req, '\0', sizeof req); + req.ai_family = AF_INET6; + + /* This call used to crash. We cannot expect the test machine to have + IPv6 enabled so we just check that the call returns. */ + getaddrinfo (name, NULL, &req, &ai); + + puts ("success!"); + return 0; +} -- cgit 1.4.1