1 RUN: printf '\201rforpl\377' > %t.profraw
2 RUN: printf '\10\0\0\0\0\0\0\0' >> %t.profraw
3 // We should fail on this because the binary IDs is not a multiple of 8 bytes.
4 RUN: printf '\77\0\0\0\0\0\0\0' >> %t.profraw
5 RUN: printf '\0\0\0\0\0\0\0\0' >> %t.profraw
6 RUN: printf '\0\0\0\0\0\0\0\0' >> %t.profraw
7 RUN: printf '\0\0\0\0\0\0\0\0' >> %t.profraw
8 RUN: printf '\0\0\0\0\0\0\0\0' >> %t.profraw
9 RUN: printf '\0\0\0\0\0\0\0\0' >> %t.profraw
10 RUN: printf '\0\0\0\0\0\0\0\0' >> %t.profraw
11 RUN: printf '\0\0\0\0\0\0\0\0' >> %t.profraw
12 RUN: printf '\0\0\0\0\0\0\0\0' >> %t.profraw
14 // Binary IDs - There are only two in this case that are 20 bytes.
15 RUN: printf '\24\0\0\0\0\0\0\0' >> %t.profraw
16 RUN: printf '\0\1\2\3\4\5\6\7' >> %t.profraw
17 RUN: printf '\0\1\2\3\4\5\6\7' >> %t.profraw
18 RUN: printf '\0\1\2\3\0\0\0\0' >> %t.profraw
19 RUN: printf '\24\0\0\0\0\0\0\0' >> %t.profraw
20 RUN: printf '\1\1\1\1\1\1\1\1' >> %t.profraw
21 RUN: printf '\2\2\2\2\2\2\2\2' >> %t.profraw
22 RUN: printf '\3\3\3\3\0\0\0\0' >> %t.profraw
24 // RUN: not llvm-profdata show --binary-ids %t.profraw 2>&1 | FileCheck %s
25 // CHECK: invalid instrumentation profile data (file header is corrupt)