]>
git.proxmox.com Git - rustc.git/blob - src/compiler-rt/test/asan/TestCases/alloca_safe_access.cc
1 // RUN: %clangxx_asan -O0 -mllvm -asan-instrument-allocas %s -o %t
7 __attribute__((noinline
)) void foo(int index
, int len
) {
8 volatile char str
[len
] __attribute__((aligned(32)));
9 assert(!(reinterpret_cast<long>(str
) & 31L));
13 int main(int argc
, char **argv
) {