android13/external/compiler-rt/test/asan/TestCases/Windows/global_const_string.cc

13 lines
263 B
C++
Raw Normal View History

2024-06-22 08:45:49 -04:00
// RUN: %clang_cl_asan -O0 %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;
}