Skip to content

Commit cad404e

Browse files
tieaduh95
authored andcommitted
test: fix volatile for CauseSegfault with clang
PR-URL: #54325 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent c1b92e0 commit cad404e

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)