Sign in
android
/
platform
/
external
/
compiler-rt
/
65e7b1d5aa3878e95eab8772d7c299660b8e7d0c
/
.
/
test
/
asan
/
TestCases
/
Windows
/
stack_array_sanity.cc
blob: 7dc75f8a6f586978b4cea5edbfe3836b6b5a4656 [
file
] [
log
] [
blame
]
// RUN: %clangxx_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
}