1 // RUN: %clangxx_msan -O0 -g %s -o %t && %run %t
3 // tdestroy is a GNU extension
4 // UNSUPPORTED: target={{.*(netbsd|freebsd).*}}
10 int compare(const void *pa
, const void *pb
) {
11 int a
= *(const int *)pa
;
12 int b
= *(const int *)pb
;
21 void myfreenode(void *p
) {
27 for (int i
= 0; i
< 5; ++i
) {
29 void *q
= tsearch(p
, &root
, compare
);
36 tdestroy(root
, myfreenode
);