17 lines · cpp
1// Test that there was an illegal WRITE memory access.2// Fails with debug checks: https://bugs.llvm.org/show_bug.cgi?id=468603// XFAIL: !compiler-rt-optimized && tsan4// RUN: %clangxx -O0 %s -o %t && not %run %t 2>&1 | FileCheck %s5 6// REQUIRES: stable-runtime7// XFAIL: target={{(powerpc64|s390x).*}}8 9volatile int *null = 0;10 11int main(int argc, char **argv) {12 *null = 0;13 return 0;14}15 16// CHECK: The signal is caused by a WRITE memory access.17