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 static unlikely_func bool calling_is_unlikely(void)
25 int main(int argc, char *argv[])
29 /* Without debug, we can only check that it doesn't effect functions. */
30 ok1(one_seems_likely(1));
31 ok1(!one_seems_likely(2));
32 ok1(one_seems_unlikely(1));
33 ok1(!one_seems_unlikely(2));
34 ok1(calling_is_unlikely());