[RISCV] Add RVVConstraint to SiFive custom matrix multiply instructions. (#124055)
[llvm-project.git] / compiler-rt / test / asan / TestCases / Windows / heapalloc_flags_fallback.cpp
blob64b6ecf373ed875d1ba1617e6e5fc4cd533567ac
1 // RUN: %clang_cl_asan %Od %s %Fe%t
2 // RUN: %run %t 2>&1 | FileCheck %s
3 // RUN: %env_asan_opts=windows_hook_rtl_allocators=true %run %t 2>&1 | FileCheck %s
4 // UNSUPPORTED: asan-64-bits
5 #include <assert.h>
6 #include <stdio.h>
7 #include <windows.h>
9 extern "C" int
10 __sanitizer_get_ownership(const volatile void *p);
12 int main() {
13 char *buffer;
14 buffer = (char *)HeapAlloc(GetProcessHeap(), HEAP_GENERATE_EXCEPTIONS, 32);
15 buffer[0] = 'a';
16 assert(!__sanitizer_get_ownership(buffer));
17 HeapFree(GetProcessHeap(), 0, buffer);
18 puts("Okay");
19 // CHECK: Okay