llvm-project/lld/test/core/dead-strip-attributes.objtxt

23 lines
489 B
Plaintext

# RUN: lld -core %s %p/Inputs/dead-strip-attributes.objtxt \
# RUN: %p/Inputs/dead-strip-attributes2.objtxt | FileCheck %s
#
# Test that dead strip attributes are preserved
#
---
defined-atoms:
- name: _foo1
dead-strip: normal
...
# CHECK: name: _foo1
# CHECK-NOT: dead-strip: never
# CHECK-NOT: dead-strip: always
# CHECK: name: _foo2
# CHECK: dead-strip: never
# CHECK: name: _foo3
# CHECK: dead-strip: always
# CHECK: ...