diff options
Diffstat (limited to 'llvm/test/tools/llvm-profdata')
-rw-r--r-- | llvm/test/tools/llvm-profdata/raw-magic-but-no-header.test | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/test/tools/llvm-profdata/raw-magic-but-no-header.test b/llvm/test/tools/llvm-profdata/raw-magic-but-no-header.test new file mode 100644 index 00000000000..e899ece2755 --- /dev/null +++ b/llvm/test/tools/llvm-profdata/raw-magic-but-no-header.test @@ -0,0 +1,6 @@ +RUN: printf "warforpl" > %t +RUN: not llvm-profdata show %t 2>&1 | FileCheck %s +RUN: printf "lprofraw" > %t +RUN: not llvm-profdata show %t 2>&1 | FileCheck %s + +CHECK: error: {{.+}}: Invalid header |