1 #include <ccan/likely/likely.c>
2 #include <ccan/likely/likely.h>
3 #include <ccan/tap/tap.h>
6 static bool one_seems_likely(unsigned int val)
13 static bool one_seems_unlikely(unsigned int val)
15 if (unlikely(val == 1))
20 int main(int argc, char *argv[])
24 /* Without debug, we can only check that it doesn't effect functions. */
25 ok1(one_seems_likely(1));
26 ok1(!one_seems_likely(2));
27 ok1(one_seems_unlikely(1));
28 ok1(!one_seems_unlikely(2));