[llvm] r267782 - Add a test case for the crash fixed with r267037. David Blaikie said it would be nice to have!
Kevin Enderby via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 27 13:37:07 PDT 2016
Author: enderby
Date: Wed Apr 27 15:37:06 2016
New Revision: 267782
URL: http://llvm.org/viewvc/llvm-project?rev=267782&view=rev
Log:
Add a test case for the crash fixed with r267037. David Blaikie said it would be nice to have!
This was crashing llvm-objdump with -macho -objc-meta-data when trying dump a non-existent section.
So the test binary is simply created from an empty .s file compiled with: clang -arch armv7 empty.s -c
Added:
llvm/trunk/test/tools/llvm-objdump/Inputs/empty.macho-armv7 (with props)
llvm/trunk/test/tools/llvm-objdump/macho-objc-meta-data.test
Added: llvm/trunk/test/tools/llvm-objdump/Inputs/empty.macho-armv7
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-objdump/Inputs/empty.macho-armv7?rev=267782&view=auto
==============================================================================
Binary file - no diff available.
Propchange: llvm/trunk/test/tools/llvm-objdump/Inputs/empty.macho-armv7
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: llvm/trunk/test/tools/llvm-objdump/macho-objc-meta-data.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-objdump/macho-objc-meta-data.test?rev=267782&view=auto
==============================================================================
--- llvm/trunk/test/tools/llvm-objdump/macho-objc-meta-data.test (added)
+++ llvm/trunk/test/tools/llvm-objdump/macho-objc-meta-data.test Wed Apr 27 15:37:06 2016
@@ -0,0 +1,3 @@
+# RUN: llvm-objdump -macho -objc-meta-data %p/Inputs/empty.macho-armv7 | FileCheck %s
+
+# CHECK: empty.macho-armv7:
More information about the llvm-commits
mailing list