1RUN: printf '\201rforpl\377' > %t
2RUN: printf '\1\0\0\0\0\0\0\0' >> %t
3RUN: printf '\2\0\0\0\0\0\0\0' >> %t
4RUN: printf '\3\0\0\0\0\0\0\0' >> %t
5RUN: printf '\6\0\0\0\0\0\0\0' >> %t
6RUN: printf '\0\0\4\0\1\0\0\0' >> %t
7RUN: printf '\0\0\4\0\2\0\0\0' >> %t
8
9RUN: printf '\3\0\0\0' >> %t
10RUN: printf '\1\0\0\0' >> %t
11RUN: printf '\1\0\0\0\0\0\0\0' >> %t
12RUN: printf '\0\0\4\0\2\0\0\0' >> %t
13RUN: printf '\0\0\4\0\1\0\0\0' >> %t
14
15RUN: printf '\03\0\0\0' >> %t
16RUN: printf '\02\0\0\0' >> %t
17RUN: printf '\02\0\0\0\0\0\0\0' >> %t
18RUN: printf '\03\0\4\0\2\0\0\0' >> %t
19RUN: printf '\10\0\4\0\1\0\0\0' >> %t
20
21RUN: printf '\023\0\0\0\0\0\0\0' >> %t
22RUN: printf '\067\0\0\0\0\0\0\0' >> %t
23RUN: printf '\101\0\0\0\0\0\0\0' >> %t
24RUN: printf 'foobar' >> %t
25
26RUN: llvm-profdata show %t -all-functions -counts | FileCheck %s
27
28CHECK: Counters:
29CHECK:   foo:
30CHECK:     Hash: 0x0000000000000001
31CHECK:     Counters: 1
32CHECK:     Function count: 19
33CHECK:     Block counts: []
34CHECK:   bar:
35CHECK:     Hash: 0x0000000000000002
36CHECK:     Counters: 2
37CHECK:     Function count: 55
38CHECK:     Block counts: [65]
39CHECK: Functions shown: 2
40CHECK: Total functions: 2
41CHECK: Maximum function count: 55
42CHECK: Maximum internal block count: 65
43