aboutsummaryrefslogtreecommitdiff
path: root/test/asan/TestCases/asan_and_llvm_coverage_test.cc
blob: 05de12b66bba09a9745e7b390992c634dabe22c6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
// RUN: %clangxx_asan -coverage -O0 %s -o %t
// RUN: env ASAN_OPTIONS=$ASAN_OPTIONS: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
}