Home | History | Annotate | Download | only in TestCases
      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 // XFAIL: android
      4 // We don't really support running tests using profile runtime on Windows.
      5 // UNSUPPORTED: win32
      6 #include <stdio.h>
      7 int foo() { return 1; }
      8 int XXX = foo();
      9 int main() {
     10   printf("PASS\n");
     11 // CHECK: PASS
     12 }
     13