Hacker News new | ask | show | jobs
by silon7 3828 days ago
I've used at times it to crash the program (core dump), producing a cleaner stack than abort().
1 comments

You should use __builtin_trap(). Invoking undefined behavior lets the compiler justifiably delete the entire code path leading up to it.