summaryrefslogtreecommitdiffstats
path: root/compiler-rt/test/asan/TestCases/asan_and_llvm_coverage_test.cc
blob: 2ba5a42d1b7b82f17492f4734ac2c0a0fda7b88d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// RUN: %clangxx_asan -coverage -O0 %s -o %t
// RUN: %env_asan_opts=check_initialization_order=1 %run %t 2>&1 | FileCheck %s

// We don't really support running tests using profile runtime on Windows.
// UNSUPPORTED: windows-msvc

#include <stdio.h>
int foo() { return 1; }
int XXX = foo();
int main() {
  printf("PASS\n");
// CHECK: PASS
}
OpenPOWER on IntegriCloud