Skip to content

Commit f7af8ca

Browse files
tietargos
authored andcommitted
test: fix volatile for CauseSegfault with clang
PR-URL: #54325 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent 4a840ce commit f7af8ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/node_process_methods.cc

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

0 commit comments

Comments
 (0)