1// RUN: %clang_cl_asan %Od %s %Fe%t
2// RUN: %run %t | FileCheck %s
3
4#include <stdio.h>
5
6int main() {
7 int subscript = 1;
8 char buffer[42];
9 buffer[subscript] = 42;
10 printf(format: "OK\n");
11// CHECK: OK
12}
13

source code of compiler-rt/test/asan/TestCases/Windows/stack_array_sanity.cpp