forked from OSchip/llvm-project
26 lines
612 B
Plaintext
26 lines
612 B
Plaintext
# RUN: lld -core --dead-strip %s | FileCheck -check-prefix=CHECK1 %s
|
|
# RUN: lld -core %s | FileCheck -check-prefix=CHECK2 %s
|
|
|
|
---
|
|
defined-atoms:
|
|
- name: entry
|
|
dead-strip: never
|
|
scope: global
|
|
references:
|
|
- kind: layout-after
|
|
offset: 0
|
|
target: def
|
|
- name: def
|
|
scope: global
|
|
- name: dead
|
|
scope: global
|
|
...
|
|
|
|
# CHECK1: name: entry
|
|
# CHECK1: name: def
|
|
# CHECK1-NOT: name: dead
|
|
|
|
# CHECK2: name: entry
|
|
# CHECK2: name: def
|
|
# CHECK2: name: dead
|