1// RUN: %clang_cl_asan %Od %s %Fe%t
2// RUN: %run %t | FileCheck %s
3
4#include <windows.h>
5#include <stdio.h>
6
7int main(void) {
8 static const char *foo = "foobarspam";
9 printf(format: "Global string is `%s`\n", foo);
10// CHECK: Global string is `foobarspam`
11 return 0;
12}
13

source code of compiler-rt/test/asan/TestCases/Windows/global_const_string.cpp