This reverts commit52aeacfbf5. There isn't full agreement on a path forward yet, but there is agreement that this shouldn't land as-is. See discussion on https://reviews.llvm.org/D105338 Also reverts unreviewed "[clang] Improve `-Wnull-dereference` diag to be more in-line with reality" This reverts commitf4877c78c0. And all the related changes to tests: This reverts commit9a0152799f. This reverts commit3f7c9cc274. This reverts commit329f8197ef. This reverts commitaa9f58cc2c. This reverts commit2df37d5ddd. This reverts commita72a441812.
11 lines
736 B
Plaintext
11 lines
736 B
Plaintext
RUN: %cpp_compiler %S/NullDerefTest.cpp -o %t-NullDerefTest
|
|
|
|
RUN: not %run %t-NullDerefTest 2>&1 | FileCheck %s --check-prefix=NullDerefTest
|
|
RUN: not %run %t-NullDerefTest -close_fd_mask=3 2>&1 | FileCheck %s --check-prefix=NullDerefTest
|
|
NullDerefTest: ERROR: AddressSanitizer: {{SEGV|access-violation}} on unknown address
|
|
NullDerefTest: Test unit written to ./crash-
|
|
RUN: not %run %t-NullDerefTest -artifact_prefix=ZZZ 2>&1 | FileCheck %s --check-prefix=NullDerefTestPrefix
|
|
NullDerefTestPrefix: Test unit written to ZZZcrash-
|
|
RUN: not %run %t-NullDerefTest -artifact_prefix=ZZZ -exact_artifact_path=FOOBAR 2>&1 | FileCheck %s --check-prefix=NullDerefTestExactPath
|
|
NullDerefTestExactPath: Test unit written to FOOBAR
|