xref: /aosp_15_r20/external/compiler-rt/test/asan/TestCases/Windows/global_const_string.cc (revision 7c3d14c8b49c529e04be81a3ce6f5cc23712e4c6)
1 // RUN: %clang_cl_asan -O0 %s -Fe%t
2 // RUN: %run %t | FileCheck %s
3 
4 #include <windows.h>
5 #include <stdio.h>
6 
main(void)7 int main(void) {
8   static const char *foo = "foobarspam";
9   printf("Global string is `%s`\n", foo);
10 // CHECK: Global string is `foobarspam`
11   return 0;
12 }
13