forked from OSchip/llvm-project
42 lines
1.4 KiB
Plaintext
42 lines
1.4 KiB
Plaintext
# RUN: lld -flavor gnu -target x86_64 --allow-multiple-definition %s \
|
|
# RUN: %p/Inputs/allowduplicates.objtxt \
|
|
# RUN: --output-filetype=yaml --noinhibit-exec | FileCheck %s
|
|
#
|
|
# RUN: not lld -flavor gnu -target x86_64 %s %p/Inputs/allowduplicates.objtxt \
|
|
# RUN: --output-filetype=yaml \
|
|
# RUN: --noinhibit-exec 2>&1 | FileCheck -check-prefix=ERROR %s
|
|
#
|
|
# RUN: lld -flavor gnu -target x86_64 -z muldefs %s \
|
|
# RUN: %p/Inputs/allowduplicates.objtxt \
|
|
# RUN: --noinhibit-exec --output-filetype=yaml | FileCheck %s
|
|
|
|
---
|
|
defined-atoms:
|
|
- name: .text
|
|
alignment: 16
|
|
section-choice: custom-required
|
|
section-name: .text
|
|
- name: main
|
|
scope: global
|
|
content: [ B8, 00, 00, 00, 00, C7, 44, 24, FC, 00, 00, 00,
|
|
00, C3 ]
|
|
alignment: 16
|
|
section-choice: custom-required
|
|
section-name: .text
|
|
---
|
|
|
|
# CHECK: defined-atoms:
|
|
# CHECK: - name: .text
|
|
# CHECK: alignment: 16
|
|
# CHECK: section-choice: custom-required
|
|
# CHECK: section-name: .text
|
|
# CHECK: - name: main
|
|
# CHECK: scope: global
|
|
# CHECK: content: [ B8, 00, 00, 00, 00, C7, 44, 24, FC, 00, 00, 00,
|
|
# CHECK: 00, C3 ]
|
|
# CHECK: alignment: 16
|
|
# CHECK: section-choice: custom-required
|
|
# CHECK: section-name: .text
|
|
|
|
# ERROR: duplicate symbol error
|