Files
clang-p2996/compiler-rt/test/asan/TestCases/asan_and_llvm_coverage_test.cpp
Nico Weber 673dc3d4a0 compiler-rt: Rename cc files below test/asan to cpp
See r367803 and similar other changes.

llvm-svn: 367887
2019-08-05 16:48:12 +00:00

14 lines
341 B
C++

// 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
}