Files
clang-p2996/compiler-rt/test/asan/TestCases/Windows/global_const_string.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
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;
}