blob: aeba8357b723d01702244fa726cac8e36ae812c2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
# RUN: lld -flavor darwin -arch x86_64 -macosx_version_min 10.9 %s -o %t -stack_size 31415926000 %p/Inputs/libSystem.yaml
# RUN: llvm-objdump -private-headers %t | FileCheck %s
# RUN: not lld -flavor darwin -arch x86_64 -stack_size 0x31415926530 %s >/dev/null 2> %t
# RUN: FileCheck < %t %s --check-prefix=CHECK-ERROR-MISPAGED
# RUN: not lld -flavor darwin -arch x86_64 -stack_size hithere %s >/dev/null 2> %t
# RUN: FileCheck < %t %s --check-prefix=CHECK-ERROR-NOTHEX
--- !native
defined-atoms:
- name: _main
scope: global
content: []
# CHECK: cmd LC_MAIN
# CHECK: stacksize 3384796143616
# CHECK-ERROR-MISPAGED: error: stack_size must be a multiple of page size (0x1000)
# CHECK-ERROR-NOTHEX: error: stack_size expects a hex number
|