]> git.proxmox.com Git - rustc.git/blame - src/compiler-rt/test/asan/TestCases/asan_and_llvm_coverage_test.cc
New upstream version 1.12.0+dfsg1
[rustc.git] / src / compiler-rt / test / asan / TestCases / asan_and_llvm_coverage_test.cc
CommitLineData
92a42be0
SL
1// RUN: %clangxx_asan -coverage -O0 %s -o %t
2// RUN: %env_asan_opts=check_initialization_order=1 %run %t 2>&1 | FileCheck %s
5bcae85e
SL
3// XFAIL: android
4// We don't really support running tests using profile runtime on Windows.
5// UNSUPPORTED: win32
92a42be0
SL
6#include <stdio.h>
7int foo() { return 1; }
8int XXX = foo();
9int main() {
10 printf("PASS\n");
11// CHECK: PASS
12}