raw-magic-but-no-header.test 239 B

123456
  1. RUN: printf '\201rforpl\377' > %t
  2. RUN: not llvm-profdata show %t 2>&1 | FileCheck %s
  3. RUN: printf '\377lprofr\201' > %t
  4. RUN: not llvm-profdata show %t 2>&1 | FileCheck %s
  5. CHECK: error: {{.+}}: Invalid profile data (file header is corrupt)