| 5 | #include <csignal> |
| 6 | |
| 7 | int main() { |
| 8 | #ifdef _WIN32 |
| 9 | _set_abort_behavior(0, _WRITE_ABORT_MSG); // prevents Windows abort pop-up from appearing |
| 10 | #endif |
| 11 | |
| 12 | std::signal(SIGABRT, [](int){ std::quick_exit(EXIT_SUCCESS); }); // treat assert trigger as success |
| 13 | |
| 14 | const int rows = 10; |
| 15 | const int cols = 12; |
| 16 | |
| 17 | ASSERT(rows == cols, "Linear system requires a square matrix."); |
| 18 | |
| 19 | return EXIT_FAILURE; // treat no assert trigger as failure |
| 20 | } |
nothing calls this directly
no outgoing calls
no test coverage detected