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 '\377lprofr\201' > %t
5 RUN: printf '\0\0\0\0\0\0\0\12' >> %t
6 RUN: printf '\0\0\0\0\0\0\0\0' >> %t
7 RUN: printf '\0\0\0\0\0\0\0\2' >> %t
8 RUN: printf '\0\0\0\0\0\0\0\0' >> %t
9 RUN: printf '\0\0\0\0\0\0\0\3' >> %t
10 RUN: printf '\0\0\0\0\0\0\0\0' >> %t
11 RUN: printf '\0\0\0\0\0\0\0\4' >> %t
12 RUN: printf '\0\0\0\0\0\0\0\0' >> %t
13 RUN: printf '\0\0\0\0\0\0\0\20' >> %t
14 RUN: printf '\0\0\0\1\0\4\0\0' >> %t
15 RUN: printf '\0\0\0\3\0\4\0\0' >> %t
16 RUN: printf '\0\0\0\2\0\4\0\0' >> %t
17 RUN: printf '\0\0\0\0\0\0\0\0' >> %t
18 RUN: printf '\0\0\0\0\0\0\0\0' >> %t
19 RUN: printf '\0\0\0\0\0\0\0\0' >> %t
21 RUN: printf '\134\370\302\114\333\030\275\254' >> %t
22 RUN: printf '\0\0\0\0\0\0\0\1' >> %t
23 RUN: printf '\0\0\0\1\0\4\0\0' >> %t
24 RUN: printf '\0\0\0\3\0\4\0\0' >> %t
25 RUN: printf '\0\0\0\0\0\0\0\0' >> %t
26 RUN: printf '\0\0\0\0\0\0\0\0' >> %t
27 RUN: printf '\0\0\0\1' >> %t
28 RUN: printf '\0\0\0\0\0\0\0\0' >> %t
29 RUN: printf '\0\0\0\3' >> %t
31 RUN: printf '\344\023\165\112\031\035\265\067' >> %t
32 RUN: printf '\0\0\0\0\0\0\0\02' >> %t
33 RUN: printf '\0\0\0\1\0\3\xff\xc8' >> %t
34 RUN: printf '\0\0\0\3\0\3\xff\xc3' >> %t
35 RUN: printf '\0\0\0\0\0\0\0\0' >> %t
36 RUN: printf '\0\0\0\0\0\0\0\0' >> %t
37 RUN: printf '\0\0\0\02' >> %t
38 RUN: printf '\0\0\0\0\0\0\0\0' >> %t
39 RUN: printf '\0\0\0\1' >> %t
41 RUN: printf '\0\0\0\0\0\0\0\023' >> %t
42 RUN: printf '\0\0\0\0\0\0\0\067' >> %t
43 RUN: printf '\0\0\0\0\0\0\0\101' >> %t
44 RUN: printf '\125\125\125\052' >> %t
45 RUN: printf '\7\0foo\1bar\0\0\0\0\0\0\0' >> %t
47 RUN: llvm-profdata show %t -all-functions -counts | FileCheck %s
48 RUN: llvm-profdata show %t -all-functions -text | FileCheck %s -check-prefix=MCDC
52 CHECK: Hash: 0x0000000000000001
54 CHECK: Function count: 19
55 CHECK: Block counts: []
57 CHECK: Hash: 0x0000000000000002
59 CHECK: Function count: 55
60 CHECK: Block counts: [65]
61 CHECK: Functions shown: 2
62 CHECK: Total functions: 2
63 CHECK: Maximum function count: 55
64 CHECK: Maximum internal block count: 65
66 MCDC: Num Bitmap Bytes:
68 MCDC-NEXT: Bitmap Byte Values:
72 MCDC: Num Bitmap Bytes:
74 MCDC-NEXT: Bitmap Byte Values: