1 // RUN: %clangxx_asan -coverage -O0 %s -o %t 2 // RUN: %env_asan_opts=check_initialization_order=1 %run %t 2>&1 | FileCheck %s 3 4 // We don't really support running tests using profile runtime on Windows. 5 // UNSUPPORTED: windows-msvc 6 7 #include <stdio.h> 8 int foo() { return 1; } 9 int XXX = foo(); 10 int main() { 11 printf("PASS\n"); 12 // CHECK: PASS 13 } 14