+static void test_lfstack(void)
+{
+ struct cds_lfs_stack s;
+
+ cds_lfs_init(&s);
+ if (!cds_lfs_empty(&s))
+ fail("cds_lfs_empty");
+ else
+ ok(1, "cds_lfs_empty");
+}
+
+static void test_wfstack(void)
+{
+ struct cds_wfs_stack s;
+
+ cds_wfs_init(&s);
+ if (!cds_wfs_empty(&s))
+ fail("cds_lfs_empty");
+ else
+ ok(1, "cds_lfs_empty");
+}
+
+static void test_wfcqueue(void)
+{
+ struct cds_wfcq_head head;
+ struct cds_wfcq_tail tail;
+
+ cds_wfcq_init(&head, &tail);
+ if (!cds_wfcq_empty(&head, &tail))
+ fail("cds_wfcq_empty");
+ else
+ ok(1, "cds_wfcq_empty");
+}
+
+static
+void test_build_cds_list_head_init(void)
+{
+ /* Test that the CDS_LIST_HEAD_INIT macro builds correctly. */
+ struct struct_with_list {
+ struct cds_list_head head;
+ };
+
+ struct struct_with_list list = {
+ .head = CDS_LIST_HEAD_INIT(list.head),
+ };
+}
+