diff options
| author | William Casarin <jb55@jb55.com> | 2018-07-09 22:28:25 -0700 |
|---|---|---|
| committer | William Casarin <jb55@jb55.com> | 2018-07-09 22:31:48 -0700 |
| commit | 9593fc545950782ed75f12f53238b07885559b2b (patch) | |
| tree | 9c7c2f7cbb427c54e9184cb61eedce737a6cbc6f /ccan/likely/test/run.c | |
| parent | bd8c223756d2f912526ecef53bae0cc8e0c63442 (diff) | |
remove ccan for now
Diffstat (limited to 'ccan/likely/test/run.c')
| -rw-r--r-- | ccan/likely/test/run.c | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/ccan/likely/test/run.c b/ccan/likely/test/run.c deleted file mode 100644 index 28ea798..0000000 --- a/ccan/likely/test/run.c +++ /dev/null @@ -1,30 +0,0 @@ -#include <ccan/likely/likely.c> -#include <ccan/likely/likely.h> -#include <ccan/tap/tap.h> -#include <stdlib.h> - -static bool one_seems_likely(unsigned int val) -{ - if (likely(val == 1)) - return true; - return false; -} - -static bool one_seems_unlikely(unsigned int val) -{ - if (unlikely(val == 1)) - return true; - return false; -} - -int main(void) -{ - plan_tests(4); - - /* Without debug, we can only check that it doesn't effect functions. */ - ok1(one_seems_likely(1)); - ok1(!one_seems_likely(2)); - ok1(one_seems_unlikely(1)); - ok1(!one_seems_unlikely(2)); - exit(exit_status()); -} |
