Handle inline stacks in gcov-encoded sample profiles.
[oota-llvm.git] / test / tools / llvm-profdata / raw-magic-but-no-header.test
index e899ece2755e293f523bd500198f40006263b998..b2a697042b0ab72b4863ec4617d257ab5f200c9c 100644 (file)
@@ -1,6 +1,6 @@
-RUN: printf "warforpl" > %t
+RUN: printf '\201rforpl\377' > %t
 RUN: not llvm-profdata show %t 2>&1 | FileCheck %s
-RUN: printf "lprofraw" > %t
+RUN: printf '\377lprofr\201' > %t
 RUN: not llvm-profdata show %t 2>&1 | FileCheck %s
 
-CHECK: error: {{.+}}: Invalid header
+CHECK: error: {{.+}}: Invalid profile data (file header is corrupt)