Files
clang-p2996/compiler-rt/test/asan/TestCases/Windows/stack_array_sanity.cc
Nico Weber da233838c9 clang-cl: Remove -O0 option
cl.exe doesn't understand it; there's /Od instead. See also the review
thread for r229575.

Update lots of compiler-rt tests to use -Od instead of -O0.
Ran `rg -l 'clang_cl.*O0' compiler-rt/test/ | xargs sed -i -c 's/-O0/-Od/'`

Differential Revision: https://reviews.llvm.org/D64506

llvm-svn: 365724
2019-07-11 01:18:05 +00:00

13 lines
200 B
C++

// 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
}