10 void log_test(bool predicate
, const char *file
, int line
, const char *message
)
16 printf("Test passed: %s:%d: %s\n", file
, line
, message
);
22 printf("Test failed: %s:%d: %s\n", file
, line
, message
);
25 static void log_totals(void)
27 printf("\n%d tests, %d passed, %d failed\n", succeeded
+failed
, succeeded
, failed
);
30 static void __attribute__((constructor
)) init(void)
35 void test_type_info(void);
36 void test_exceptions();
37 void test_guards(void);
38 int main(int argc
, char **argv
)
42 while ((ch
= getopt(argc
, argv
, "v")) != -1)