Sign in
cobalt
/
cobalt
/
56d7c4e1a836a7ef6e2823bffb8d1567758b82eb
/
.
/
third_party
/
llvm-project
/
compiler-rt
/
test
/
asan
/
TestCases
/
Windows
/
stack_array_sanity.cpp
blob: 0f0b5450ec75bb89a964de577762c2f985e626b3 [
file
] [
log
] [
blame
]
// UNSUPPORTED: target={{.*-windows-gnu}}
// RUN: %clang_cl_asan -Od %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
}