| 67 | #endif |
| 68 | |
| 69 | int main(int argc, const char * const argv[]) |
| 70 | { |
| 71 | #if defined(USE_UNIX_SIGNAL_HANDLING) |
| 72 | if (argc != 2) |
| 73 | return 1; |
| 74 | |
| 75 | register_signal_handler(stdout); |
| 76 | |
| 77 | if (strcmp(argv[1], "assert") == 0) |
| 78 | my_assert(); |
| 79 | else if (strcmp(argv[1], "abort") == 0) |
| 80 | my_abort(); |
| 81 | else if (strcmp(argv[1], "segv") == 0) |
| 82 | my_segv(); |
| 83 | #if !defined(__APPLE__) && !defined(_AIX) |
| 84 | else if (strcmp(argv[1], "fpe") == 0) |
| 85 | return my_fpe(); |
| 86 | #endif |
| 87 | |
| 88 | return 0; |
| 89 | #else |
| 90 | (void)argc; |
| 91 | (void)argv; |
| 92 | return 1; |
| 93 | #endif |
| 94 | } |
nothing calls this directly
no test coverage detected