xieite ::segfault ()
Defined in fragment xieite :segfault
(header-only:
<xieite/sys/segfault.hpp>
)
Dereferences
nullptr
to cause a segmentation fault, though whether it's handled at all is entirely up to the operating system.Why would you use this?
Declaration
This isn't even markedvoid segfault ()noexcept ;
[[noreturn ]]
.Example
Possible output:import xieite ;int main () {xieite ::segfault (); }
View in Compiler ExplorerSegmentation fault (code dumped)