18 lines · cpp
1// Test that there was an illegal READ 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;10volatile int a;11 12int main(int argc, char **argv) {13 a = *null;14 return 0;15}16 17// CHECK: The signal is caused by a READ memory access.18