llvm-project/compiler-rt/test/asan/TestCases/asan_and_llvm_coverage_test.cc

11 lines
253 B
C++
Raw Normal View History

// RUN: %clangxx_asan -coverage -O0 %s -o %t
// RUN: %env_asan_opts=check_initialization_order=1 %run %t 2>&1 | FileCheck %s
// XFAIL: android
#include <stdio.h>
int foo() { return 1; }
int XXX = foo();
int main() {
printf("PASS\n");
// CHECK: PASS
}