mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-29 18:16:06 +00:00
13 lines
200 B
C++
13 lines
200 B
C++
// 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
|
|
}
|