1 // RUN: %clangxx_asan -coverage -O0 %s -o %t
2 // RUN: env ASAN_OPTIONS=check_initialization_order=1 %run %t 2>&1 | FileCheck %s
3 // XFAIL: android
4 #include <stdio.h>
foo()5 int foo() { return 1; }
6 int XXX = foo();
main()7 int main() {
8 printf("PASS\n");
9 // CHECK: PASS
10 }
11