1 // RUN: %clangxx -O0 -g %s -o %t && %run %t 2>&1 | FileCheck %s
3 // UNSUPPORTED: darwin, target={{.*(linux|solaris).*}}
9 #include <stringlist.h>
14 StringList
*sl
= sl_init();
16 char *p
= strdup("entry");
17 assert(!sl_add(sl
, p
));
18 char *entry
= sl_find(sl
, "entry");
19 assert(!strcmp(entry
, p
));
20 printf("Found '%s'\n", entry
);
25 // CHECK: Found '{{.*}}'