]> git.ozlabs.org Git - ccan/blobdiff - ccan/likely/test/run.c
compiler: use everywhere.
[ccan] / ccan / likely / test / run.c
index b6413b15ce29244714d75037ac11ac0e4b5085c9..fa1dc9f6eade527431deae6b2d1b1ec470630357 100644 (file)
@@ -17,20 +17,14 @@ static bool one_seems_unlikely(unsigned int val)
        return false;
 }
 
-static unlikely_func bool calling_is_unlikely(void)
-{
-       return true;
-}
-
 int main(int argc, char *argv[])
 {
-       plan_tests(5);
+       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));
-       ok1(calling_is_unlikely());
        exit(exit_status());
 }