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
13 lines
263 B
C++
13 lines
263 B
C++
// RUN: %clang_cl_asan -Od %s -Fe%t
|
|
// RUN: %run %t | FileCheck %s
|
|
|
|
#include <windows.h>
|
|
#include <stdio.h>
|
|
|
|
int main(void) {
|
|
static const char *foo = "foobarspam";
|
|
printf("Global string is `%s`\n", foo);
|
|
// CHECK: Global string is `foobarspam`
|
|
return 0;
|
|
}
|