2014-09-25 06:41:55 +08:00
|
|
|
// RUN: %clangxx_asan -coverage -O0 %s -o %t
|
2015-08-13 07:50:12 +08:00
|
|
|
// RUN: %env_asan_opts=check_initialization_order=1 %run %t 2>&1 | FileCheck %s
|
2017-09-16 11:26:03 +08:00
|
|
|
|
2016-02-12 02:26:57 +08:00
|
|
|
// We don't really support running tests using profile runtime on Windows.
|
|
|
|
// UNSUPPORTED: win32
|
2014-09-25 06:41:55 +08:00
|
|
|
#include <stdio.h>
|
|
|
|
int foo() { return 1; }
|
|
|
|
int XXX = foo();
|
|
|
|
int main() {
|
|
|
|
printf("PASS\n");
|
|
|
|
// CHECK: PASS
|
|
|
|
}
|