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

Lines changed: 1 addition & 1 deletion
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy