global_const_string.cpp 263 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 10 11 12 // 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; }