aboutsummaryrefslogtreecommitdiff
path: root/test/mach-o/sdk-version-error.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'test/mach-o/sdk-version-error.yaml')
-rw-r--r--test/mach-o/sdk-version-error.yaml22
1 files changed, 22 insertions, 0 deletions
diff --git a/test/mach-o/sdk-version-error.yaml b/test/mach-o/sdk-version-error.yaml
new file mode 100644
index 0000000000000..2607bb8e9c58b
--- /dev/null
+++ b/test/mach-o/sdk-version-error.yaml
@@ -0,0 +1,22 @@
+# RUN: not lld -flavor darwin -arch x86_64 -sdk_version 10.blah %s -o %t 2>&1 | FileCheck %s --check-prefix=ERROR
+
+--- !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 sdkVersion value \ No newline at end of file