From 672c5da1ec40ff6e4ec1ef0fcb4e27593e2746ef Mon Sep 17 00:00:00 2001 From: Asher Baker Date: Fri, 1 Jul 2016 23:32:55 +0100 Subject: [PATCH] Clang managed to optimize away the test crash --- test/test.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/test.cpp b/test/test.cpp index dc5a430..b31e8a7 100644 --- a/test/test.cpp +++ b/test/test.cpp @@ -89,7 +89,8 @@ int main(int argc, char *argv[]) // Test shit here. - int a = *(int *)0x0; + volatile int *a = nullptr; + *a = 0xDEADBEEF; delete handler;