[PATCH] Test case for bug 20485

Filipe Cabecinhas filcab+llvm.phabricator at gmail.com
Wed Feb 4 15:39:23 PST 2015


Hi David,

Can you do what I've been doing and add the run lines to
test/Bitcode/invalid.test, and the invalid testcase with a name matching
invalid-*.bc to test/Bitcode/Inputs/?
That way, the invalid test cases are all in the same place.

Thanks,

 Filipe

On Wed, Feb 4, 2015 at 10:39 AM, David Callahan <dcallahan at fb.com> wrote:

> narrow revision to test case
>
>
> http://reviews.llvm.org/D7003
>
> Files:
>   test/Bitcode/bad-abbrev-record.txt
>   test/Bitcode/bad-abbrev-record.txt.bc
>
> Index: test/Bitcode/bad-abbrev-record.txt
> ===================================================================
> --- /dev/null
> +++ test/Bitcode/bad-abbrev-record.txt
> @@ -0,0 +1,6 @@
> +; RUN: not llvm-dis < %s.bc 2> %t1
> +; RUN: FileCheck < %t1 %s
> +
> +; CHECK: LLVM ERROR: Invalid encoding
> +
> +http://llvm.org/bugs/show_bug.cgi?id=20485
>
> EMAIL PREFERENCES
>   http://reviews.llvm.org/settings/panel/emailpreferences/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150204/9eaa255f/attachment.html>


More information about the llvm-commits mailing list