diff options
Diffstat (limited to 'misc/bug-hsearch1.c')
-rw-r--r-- | misc/bug-hsearch1.c | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/misc/bug-hsearch1.c b/misc/bug-hsearch1.c deleted file mode 100644 index 6097b5ad04..0000000000 --- a/misc/bug-hsearch1.c +++ /dev/null @@ -1,31 +0,0 @@ -#include <search.h> -#include <stdio.h> - -static int -do_test (void) -{ - if (hcreate (1) == 0) - { - puts ("hcreate failed"); - return 1; - } - ENTRY e; - e.key = (char *) "a"; - e.data = (char *) "b"; - if (hsearch (e, ENTER) == NULL) - { - puts ("ENTER failed"); - return 1; - } - ENTRY s; - s.key = (char *) "c"; - if (hsearch (s, FIND) != NULL) - { - puts ("FIND succeeded"); - return 1; - } - return 0; -} - -#define TEST_FUNCTION do_test () -#include "../test-skeleton.c" |