1 RUN: printf '\201rforpl\377' > %t.profraw
2 RUN: printf '\10\0\0\0\0\0\0\0' >> %t.profraw
3 RUN: printf '\40\0\0\0\0\0\0\0' >> %t.profraw
4 RUN: printf '\0\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
13 // Check for a corrupted size being too large past the end of the file.
14 RUN: printf '\7\7\7\7\7\7\7\7' >> %t.profraw
15 RUN: printf '\0\1\2\3\4\5\6\7' >> %t.profraw
16 RUN: printf '\0\1\2\3\4\5\6\7' >> %t.profraw
17 RUN: printf '\0\1\2\3\0\0\0\0' >> %t.profraw
19 // RUN: not llvm-profdata show --binary-ids %t.profraw 2>&1 | FileCheck %s
20 // CHECK: malformed instrumentation profile data: not enough data to read binary id data