| 6 | #include <memory> |
| 7 | |
| 8 | int main() { |
| 9 | #ifdef _WIN32 |
| 10 | _set_abort_behavior(0, _WRITE_ABORT_MSG); // prevents Windows abort pop-up from appearing |
| 11 | #endif |
| 12 | |
| 13 | std::signal(SIGABRT, [](int){ std::quick_exit(EXIT_SUCCESS); }); // treat assert trigger as success |
| 14 | |
| 15 | std::unique_ptr<int> component; |
| 16 | |
| 17 | ASSERT(component.get(), "Cannot invoke handling for an empty component."); |
| 18 | |
| 19 | return EXIT_FAILURE; // treat no assert trigger as failure |
| 20 | } |