Skip to content

Commit d72ab1f

Browse files
committed
test: fix volatile for CauseSegfault with clang
1 parent 559985c commit d72ab1f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/node_process_methods.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ static void Abort(const FunctionCallbackInfo<Value>& args) {
7373
// For internal testing only, not exposed to userland.
7474
static void CauseSegfault(const FunctionCallbackInfo<Value>& args) {
7575
// This should crash hard all platforms.
76-
volatile void** d = static_cast<volatile void**>(nullptr);
76+
void* volatile* d = static_cast<void* volatile*>(nullptr);
7777
*d = nullptr;
7878
}
7979

0 commit comments

Comments
 (0)