]> git.proxmox.com Git - mirror_frr.git/blob - tests/lib/cxxcompat.c
doc: Add `show ipv6 rpf X:X::X:X` command to docs
[mirror_frr.git] / tests / lib / cxxcompat.c
1 /*
2 * C++ compatibility compile-time smoketest
3 * Copyright (C) 2019 David Lamparter for NetDEF, Inc.
4 *
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)
8 * any later version.
9 *
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
13 * more details.
14 *
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
18 */
19
20 #define test__cplusplus
21
22 #include "lib/zebra.h"
23
24 #include "lib/agg_table.h"
25 #include "lib/bfd.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"
33 #include "lib/csv.h"
34 #include "lib/debug.h"
35 #include "lib/distribute.h"
36 #include "lib/ferr.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"
43 #include "lib/hash.h"
44 #include "lib/hook.h"
45 #include "lib/id_alloc.h"
46 #include "lib/if.h"
47 #include "lib/if_rmap.h"
48 #include "lib/imsg.h"
49 #include "lib/ipaddr.h"
50 #include "lib/jhash.h"
51 #include "lib/json.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"
58 #include "lib/log.h"
59 #include "lib/md5.h"
60 #include "lib/memory.h"
61 #include "lib/mlag.h"
62 #include "lib/module.h"
63 #include "lib/monotime.h"
64 #include "lib/mpls.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"
71 #include "lib/ns.h"
72 #include "lib/openbsd-tree.h"
73 #include "lib/pbr.h"
74 #include "lib/plist.h"
75 #include "lib/prefix.h"
76 #include "lib/privs.h"
77 #include "lib/ptm_lib.h"
78 #include "lib/pw.h"
79 #include "lib/qobj.h"
80 #include "lib/queue.h"
81 #include "lib/ringbuf.h"
82 #include "lib/routemap.h"
83 #include "lib/sbuf.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"
98 #include "lib/vlan.h"
99 #include "lib/vrf.h"
100 #include "lib/vty.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"
108
109 PREDECL_RBTREE_UNIQ(footree);
110 struct foo {
111 int dummy;
112 struct footree_item item;
113 };
114 static int foocmp(const struct foo *a, const struct foo *b)
115 {
116 return memcmp(&a->dummy, &b->dummy, sizeof(a->dummy));
117 }
118 DECLARE_RBTREE_UNIQ(footree, struct foo, item, foocmp);
119
120 int main(int argc, char **argv)
121 {
122 return 0;
123 }