From bd82d030011cd8b9655e5ded6b6df9343b42a6bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Wed, 4 Feb 2015 14:09:54 +0100 Subject: Imported Upstream version 3.22 --- src/tc-list2.c | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 src/tc-list2.c (limited to 'src/tc-list2.c') diff --git a/src/tc-list2.c b/src/tc-list2.c new file mode 100644 index 0000000..f41861b --- /dev/null +++ b/src/tc-list2.c @@ -0,0 +1,31 @@ +/* + * Copyright Jan Engelhardt + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the WTF Public License version 2 or + * (at your option) any later version. + */ +#include +#include +#include + +struct item { + struct HXlist_head list; +}; + +int main(void) +{ + HXLIST_HEAD(clh); + struct item lh; + struct item *pos; + + HXlist_init(&lh.list); + HXlist_add_tail(&clh, &lh.list); + HXlist_for_each_entry(pos, &clh, list) +#ifdef OK + printf("%p\n", pos); +#else + ; +#endif + return EXIT_SUCCESS; +} -- cgit v1.2.3