Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / compiler-rt / test / asan / TestCases / Linux / bzero.cpp
blob430edb74469240cae38e7e2ce52faed9b0e3c3b3
1 // RUN: %clangxx_asan -O0 %s -o %t && not %run %t 2>&1 | FileCheck %s
3 // REQUIRES: !android
5 #include <assert.h>
6 #include <strings.h>
8 int main(int argc, char *argv[]) {
9 char buf[100];
10 // *& to suppress bzero-to-memset optimization.
11 (*&bzero)(buf, sizeof(buf) + 1);
12 // CHECK: AddressSanitizer: stack-buffer-overflow
13 // CHECK-NEXT: WRITE of size 101 at
14 return 0;