| 278 | |
| 279 | #ifndef _WIN32 |
| 280 | __attribute__ ((noinline)) |
| 281 | #else |
| 282 | __declspec(noinline) |
| 283 | #endif |
| 284 | void segfault_stack_frame_2(void) { |
| 285 | // use a function pointer to thwart inlining |
| 286 | void (*fn_ptr)() = segfault_stack_frame_1; |
| 287 | fn_ptr(); |
| 288 | } |
| 289 | |
| 290 | NAN_METHOD(CauseSegfault) { |
| 291 | // use a function pointer to thwart inlining |
nothing calls this directly
no outgoing calls
no test coverage detected