1 //===-- libc gwp asan crash test ------------------------------------------===//
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
13 for (unsigned i
= 0; i
< 0x10000; ++i
) {
14 char *Ptr
= reinterpret_cast<char *>(malloc(10));
16 for (unsigned i
= 0; i
< 10; ++i
) {
21 volatile char x
= *Ptr
;