[lld] r259747 - Add test missed from r259746
Pete Cooper via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 3 18:50:07 PST 2016
Author: pete
Date: Wed Feb 3 20:50:07 2016
New Revision: 259747
URL: http://llvm.org/viewvc/llvm-project?rev=259747&view=rev
Log:
Add test missed from r259746
Added:
lld/trunk/test/mach-o/source-version.yaml
Added: lld/trunk/test/mach-o/source-version.yaml
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/mach-o/source-version.yaml?rev=259747&view=auto
==============================================================================
--- lld/trunk/test/mach-o/source-version.yaml (added)
+++ lld/trunk/test/mach-o/source-version.yaml Wed Feb 3 20:50:07 2016
@@ -0,0 +1,28 @@
+# RUN: not lld -flavor darwin -arch x86_64 -source_version 10.blah %s -o %t 2>&1 | FileCheck %s --check-prefix=ERROR
+# RUN: lld -flavor darwin -arch x86_64 -source_version 10.1.2.3.4 %s -o %t -dylib %p/Inputs/libSystem.yaml && llvm-objdump -private-headers %t | FileCheck %s
+
+--- !mach-o
+arch: x86_64
+file-type: MH_OBJECT
+flags: [ MH_SUBSECTIONS_VIA_SYMBOLS ]
+sections:
+ - segment: __TEXT
+ section: __text
+ type: S_REGULAR
+ attributes: [ S_ATTR_PURE_INSTRUCTIONS, S_ATTR_SOME_INSTRUCTIONS ]
+ address: 0x0000000000000000
+ content: [ 0x00, 0x00, 0x00, 0x00 ]
+global-symbols:
+ - name: _main
+ type: N_SECT
+ scope: [ N_EXT ]
+ sect: 1
+ value: 0x0000000000000000
+...
+
+# ERROR: malformed source_version value
+
+# CHECK: Load command {{[0-9]*}}
+# CHECK: cmd LC_SOURCE_VERSION
+# CHECK: cmdsize 16
+# CHECK: version 10.1.2.3.4
\ No newline at end of file
More information about the llvm-commits
mailing list