diff options
author | David Blaikie <dblaikie@gmail.com> | 2016-05-17 00:07:10 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2016-05-17 00:07:10 +0000 |
commit | 4940f87bcc1aa3aa048b3c38c7013d7a385cac4f (patch) | |
tree | a01ae54c2b4440e76f4102c5b01f8714a21850d2 /llvm/test/tools/llvm-dwp/X86/invalid_string_form.test | |
parent | 01d98ba0b22bfb152a3db85cac7fcb23d9cb5c85 (diff) | |
download | bcm5719-llvm-4940f87bcc1aa3aa048b3c38c7013d7a385cac4f.tar.gz bcm5719-llvm-4940f87bcc1aa3aa048b3c38c7013d7a385cac4f.zip |
llvm-dwp: Provide error handling for invalid string field forms
This diagnostic could be improved by adding the name of the input file
containing the invalid data and/or some information about how to
identify the specific offending attribute/tag in the input. But that's
not an immediate priority as these corner cases of invalid input
shouldn't come up too often.
llvm-svn: 269727
Diffstat (limited to 'llvm/test/tools/llvm-dwp/X86/invalid_string_form.test')
-rw-r--r-- | llvm/test/tools/llvm-dwp/X86/invalid_string_form.test | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/test/tools/llvm-dwp/X86/invalid_string_form.test b/llvm/test/tools/llvm-dwp/X86/invalid_string_form.test new file mode 100644 index 00000000000..e78a145dcb5 --- /dev/null +++ b/llvm/test/tools/llvm-dwp/X86/invalid_string_form.test @@ -0,0 +1,3 @@ +RUN: not llvm-dwp %p/../Inputs/invalid_string_form.dwo -o %t 2>&1 | FileCheck %s + +CHECK: error: string field encoded without DW_FORM_string or DW_FORM_GNU_str_index |