1RUN: printf '\377lprofR\201' > %t
2RUN: printf '\0\0\0\0\0\0\0\5' >> %t
3RUN: printf '\0\0\0\0\0\0\0\2' >> %t
4RUN: printf '\0\0\0\0\0\0\0\0' >> %t
5RUN: printf '\0\0\0\0\0\0\0\3' >> %t
6RUN: printf '\0\0\0\0\0\0\0\0' >> %t
7RUN: printf '\0\0\0\0\0\0\0\20' >> %t
8RUN: printf '\0\0\0\0\1\0\0\0' >> %t
9RUN: printf '\0\0\0\0\2\0\0\0' >> %t
10RUN: printf '\0\0\0\0\0\0\0\0' >> %t
11
12RUN: printf '\134\370\302\114\333\030\275\254' >> %t
13RUN: printf '\0\0\0\0\0\0\0\1' >> %t
14RUN: printf '\1\0\0\0' >> %t
15RUN: printf '\0\0\0\0' >> %t
16RUN: printf '\0\0\0\0' >> %t
17RUN: printf '\0\0\0\1' >> %t
18RUN: printf '\0\0\0\0\0\0\0\0' >> %t
19
20RUN: printf '\344\023\165\112\031\035\265\067' >> %t
21RUN: printf '\0\0\0\0\0\0\0\2' >> %t
22RUN: printf '\1\0\0\10' >> %t
23RUN: printf '\0\0\0\0' >> %t
24RUN: printf '\0\0\0\0' >> %t
25RUN: printf '\0\0\0\2' >> %t
26RUN: printf '\0\0\0\0\0\0\0\0' >> %t
27
28RUN: printf '\0\0\0\0\0\0\0\023' >> %t
29RUN: printf '\0\0\0\0\0\0\0\067' >> %t
30RUN: printf '\0\0\0\0\0\0\0\101' >> %t
31RUN: printf '\7\0foo\1bar\0\0\0\0\0\0\0' >> %t
32
33RUN: llvm-profdata show %t -all-functions -counts | FileCheck %s
34
35CHECK: Counters:
36CHECK:   foo:
37CHECK:     Hash: 0x0000000000000001
38CHECK:     Counters: 1
39CHECK:     Function count: 19
40CHECK:     Block counts: []
41CHECK:   bar:
42CHECK:     Hash: 0x0000000000000002
43CHECK:     Counters: 2
44CHECK:     Function count: 55
45CHECK:     Block counts: [65]
46CHECK: Functions shown: 2
47CHECK: Total functions: 2
48CHECK: Maximum function count: 55
49CHECK: Maximum internal block count: 65
50