Files
clang-p2996/compiler-rt/test/asan/TestCases/Windows/global_const_string.cpp
Nico Weber 673dc3d4a0 compiler-rt: Rename cc files below test/asan to cpp
See r367803 and similar other changes.

llvm-svn: 367887
2019-08-05 16:48:12 +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;
}