global_const_string.cc revision 2d1fdb26e458c4ddc04155c1d421bced3ba90cd0
1// RUN: %clangxx_asan -O0 %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("Global string is `%s`\n", foo); 10// CHECK: Global string is `foobarspam` 11 return 0; 12} 13