1// RUN: %clangxx_asan -coverage -O0 %s -o %t
2// RUN: %env_asan_opts=check_initialization_order=1 %run %t 2>&1 | FileCheck %s
3
4#include <stdio.h>
5int foo() { return 1; }
6int XXX = foo();
7int main() {
8 printf(format: "PASS\n");
9// CHECK: PASS
10}
11

Provided by KDAB

Privacy Policy
Update your C++ knowledge – Modern C++11/14/17 Training
Find out more

source code of compiler-rt/test/asan/TestCases/asan_and_llvm_coverage_test.cpp