1 // gnuwin32 printf does not work for this test because it will print \15 (CR)
2 // whenever \12 (LF) is in the input string.
3 UNSUPPORTED: system-windows
4 RUN: printf '\201rforpl\377' > %t-foo.profraw
5 RUN: printf '\12\0\0\0\0\0\0\0' >> %t-foo.profraw
6 RUN: printf '\0\0\0\0\0\0\0\0' >> %t-foo.profraw
7 RUN: printf '\1\0\0\0\0\0\0\0' >> %t-foo.profraw
8 RUN: printf '\0\0\0\0\0\0\0\0' >> %t-foo.profraw
9 RUN: printf '\1\0\0\0\0\0\0\0' >> %t-foo.profraw
10 RUN: printf '\0\0\0\0\0\0\0\0' >> %t-foo.profraw
11 RUN: printf '\0\0\0\0\0\0\0\0' >> %t-foo.profraw
12 RUN: printf '\0\0\0\0\0\0\0\0' >> %t-foo.profraw
13 RUN: printf '\10\0\0\0\0\0\0\0' >> %t-foo.profraw
14 RUN: printf '\0\0\4\0\1\0\0\0' >> %t-foo.profraw
15 RUN: printf '\0\0\0\0\0\0\0\0' >> %t-foo.profraw
16 RUN: printf '\0\0\4\0\2\0\0\0' >> %t-foo.profraw
17 RUN: printf '\0\0\0\0\0\0\0\0' >> %t-foo.profraw
18 RUN: printf '\0\0\0\0\0\0\0\0' >> %t-foo.profraw
19 RUN: printf '\0\0\0\0\0\0\0\0' >> %t-foo.profraw
21 RUN: printf '\254\275\030\333\114\302\370\134' >> %t-foo.profraw
22 RUN: printf '\1\0\0\0\0\0\0\0' >> %t-foo.profraw
23 RUN: printf '\0\0\4\0\1\0\0\0' >> %t-foo.profraw
24 RUN: printf '\0\0\0\0\0\0\0\0' >> %t-foo.profraw
25 RUN: printf '\0\0\0\0\0\0\0\0' >> %t-foo.profraw
26 RUN: printf '\0\0\0\0\0\0\0\0' >> %t-foo.profraw
27 RUN: printf '\1\0\0\0\0\0\0\0' >> %t-foo.profraw
28 RUN: printf '\0\0\0\0\0\0\0\0' >> %t-foo.profraw
30 RUN: printf '\023\0\0\0\0\0\0\0' >> %t-foo.profraw
31 RUN: printf '\3\0foo\0\0\0' >> %t-foo.profraw
33 RUN: printf '\201rforpl\377' > %t-bar.profraw
34 RUN: printf '\12\0\0\0\0\0\0\0' >> %t-bar.profraw
35 RUN: printf '\0\0\0\0\0\0\0\0' >> %t-bar.profraw
36 RUN: printf '\1\0\0\0\0\0\0\0' >> %t-bar.profraw
37 RUN: printf '\0\0\0\0\0\0\0\0' >> %t-bar.profraw
38 RUN: printf '\2\0\0\0\0\0\0\0' >> %t-bar.profraw
39 RUN: printf '\0\0\0\0\0\0\0\0' >> %t-bar.profraw
40 RUN: printf '\0\0\0\0\0\0\0\0' >> %t-bar.profraw
41 RUN: printf '\0\0\0\0\0\0\0\0' >> %t-bar.profraw
42 RUN: printf '\10\0\0\0\0\0\0\0' >> %t-bar.profraw
43 RUN: printf '\0\0\6\0\1\0\0\0' >> %t-bar.profraw
44 RUN: printf '\0\0\0\0\0\0\0\0' >> %t-bar.profraw
45 RUN: printf '\0\0\6\0\2\0\0\0' >> %t-bar.profraw
46 RUN: printf '\0\0\0\0\0\0\0\0' >> %t-bar.profraw
47 RUN: printf '\0\0\0\0\0\0\0\0' >> %t-bar.profraw
48 RUN: printf '\0\0\0\0\0\0\0\0' >> %t-bar.profraw
50 RUN: printf '\067\265\035\031\112\165\023\344' >> %t-bar.profraw
51 RUN: printf '\02\0\0\0\0\0\0\0' >> %t-bar.profraw
52 RUN: printf '\0\0\6\0\1\0\0\0' >> %t-bar.profraw
53 RUN: printf '\0\0\0\0\0\0\0\0' >> %t-bar.profraw
54 RUN: printf '\0\0\0\0\0\0\0\0' >> %t-bar.profraw
55 RUN: printf '\0\0\0\0\0\0\0\0' >> %t-bar.profraw
56 RUN: printf '\02\0\0\0\0\0\0\0' >> %t-bar.profraw
57 RUN: printf '\0\0\0\0\0\0\0\0' >> %t-bar.profraw
59 RUN: printf '\067\0\0\0\0\0\0\0' >> %t-bar.profraw
60 RUN: printf '\101\0\0\0\0\0\0\0' >> %t-bar.profraw
61 RUN: printf '\3\0bar\0\0\0' >> %t-bar.profraw
63 RUN: cat %t-foo.profraw %t-bar.profraw > %t-pad.profraw
64 RUN: llvm-profdata show %t-pad.profraw -all-functions -counts | FileCheck %s
68 CHECK: Hash: 0x0000000000000001
70 CHECK: Function count: 19
71 CHECK: Block counts: []
73 CHECK: Hash: 0x0000000000000002
75 CHECK: Function count: 55
76 CHECK: Block counts: [65]
77 CHECK: Functions shown: 2
78 CHECK: Total functions: 2
79 CHECK: Maximum function count: 55
80 CHECK: Maximum internal block count: 65