blob: 531b4d294b8fb901aab9ebb64e0f5a930a16b5a8 [file] [log] [blame]
// Test that there was an illegal WRITE memory access.
// Fails with debug checks: https://bugs.llvm.org/show_bug.cgi?id=46860
// XFAIL: !compiler-rt-optimized && tsan
// RUN: %clangxx -O0 %s -o %t && not %run %t 2>&1 | FileCheck %s
// REQUIRES: stable-runtime
// XFAIL: powerpc64, s390x
volatile int *null = 0;
int main(int argc, char **argv) {
*null = 0;
return 0;
}
// CHECK: The signal is caused by a WRITE memory access.