]>
git.proxmox.com Git - mirror_frr.git/blob - tests/lib/cxxcompat.c
2 * C++ compatibility compile-time smoketest
3 * Copyright (C) 2019 David Lamparter for NetDEF, Inc.
5 * This program is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License as published by the Free
7 * Software Foundation; either version 2 of the License, or (at your option)
10 * This program is distributed in the hope that it will be useful, but WITHOUT
11 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
15 * You should have received a copy of the GNU General Public License along
16 * with this program; see the file COPYING; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
20 #define test__cplusplus
22 #include "lib/zebra.h"
24 #include "lib/agg_table.h"
26 #include "lib/bitfield.h"
27 #include "lib/buffer.h"
28 #include "lib/checksum.h"
29 #include "lib/command.h"
30 #include "lib/command_graph.h"
31 #include "lib/command_match.h"
32 #include "lib/compiler.h"
34 #include "lib/debug.h"
35 #include "lib/distribute.h"
37 #include "lib/filter.h"
38 #include "lib/frr_pthread.h"
39 #include "lib/frratomic.h"
40 #include "lib/frrstr.h"
41 #include "lib/getopt.h"
42 #include "lib/graph.h"
45 #include "lib/id_alloc.h"
47 #include "lib/if_rmap.h"
49 #include "lib/ipaddr.h"
50 #include "lib/jhash.h"
52 #include "lib/keychain.h"
53 #include "lib/lib_errors.h"
54 #include "lib/lib_vty.h"
55 #include "lib/libfrr.h"
56 #include "lib/libospf.h"
57 #include "lib/linklist.h"
60 #include "lib/memory.h"
62 #include "lib/module.h"
63 #include "lib/monotime.h"
65 #include "lib/network.h"
66 #include "lib/nexthop.h"
67 #include "lib/nexthop_group.h"
68 #include "lib/northbound.h"
69 #include "lib/northbound_cli.h"
70 #include "lib/northbound_db.h"
72 #include "lib/openbsd-tree.h"
74 #include "lib/plist.h"
75 #include "lib/prefix.h"
76 #include "lib/privs.h"
77 #include "lib/ptm_lib.h"
80 #include "lib/queue.h"
81 #include "lib/ringbuf.h"
82 #include "lib/routemap.h"
84 #include "lib/sha256.h"
85 #include "lib/sigevent.h"
86 #include "lib/skiplist.h"
87 #include "lib/sockopt.h"
88 #include "lib/sockunion.h"
89 #include "lib/spf_backoff.h"
90 #include "lib/srcdest_table.h"
91 #include "lib/stream.h"
92 #include "lib/table.h"
93 #include "lib/termtable.h"
94 #include "lib/thread.h"
95 #include "lib/typesafe.h"
96 #include "lib/typerb.h"
97 #include "lib/vector.h"
101 #include "lib/vxlan.h"
102 #include "lib/wheel.h"
103 /* #include "lib/workqueue.h" -- macro problem with STAILQ_LAST */
104 #include "lib/yang.h"
105 #include "lib/yang_translator.h"
106 #include "lib/yang_wrappers.h"
107 #include "lib/zclient.h"
109 PREDECL_RBTREE_UNIQ(footree
);
112 struct footree_item item
;
114 static int foocmp(const struct foo
*a
, const struct foo
*b
)
116 return memcmp(&a
->dummy
, &b
->dummy
, sizeof(a
->dummy
));
118 DECLARE_RBTREE_UNIQ(footree
, struct foo
, item
, foocmp
);
120 int main(int argc
, char **argv
)