xref: /llvm-project/llvm/test/tools/llvm-profdata/nocompress.test (revision cee85fcd766c61a821092566b79e7e6aabf74e5f)
1You need a checkout of clang with compiler-rt to generate the
2binary file here.  These shell commands can be used to regenerate
3it.
4$ SRC=path/to/llvm
5$ CFE=$SRC/tools/clang
6$ TESTDIR=$SRC/test/tools/llvm-profdata
7$ CFE_TESTDIR=$CFE/test/Profile
8$ clang -o a.out -fprofile-instr-generate $CFE_TESTDIR/c-general.c
9$ LLVM_PROFILE_FILE=$TESTDIR/Inputs/compressed.profraw ./a.out
10
11RUN: not llvm-profdata show %p/Inputs/compressed.profraw -o %t 2>&1 | FileCheck %s
12
13REQUIRES: !zlib
14
15CHECK: error: {{.+}}: profile uses zlib compression but the profile reader was built without zlib support
16