llvm-project/compiler-rt/test/asan/TestCases/Windows/stack_array_sanity.cc

13 lines
200 B
C++
Raw Normal View History

// RUN: %clang_cl_asan -O0 %s -Fe%t
// RUN: %run %t | FileCheck %s
#include <stdio.h>
int main() {
int subscript = 1;
char buffer[42];
buffer[subscript] = 42;
printf("OK\n");
// CHECK: OK
}