forked from OSchip/llvm-project
41 lines
999 B
Plaintext
41 lines
999 B
Plaintext
# RUN: lld -core %s | FileCheck %s
|
|
|
|
#
|
|
# Test that shared-library symbols are parsed and preserved
|
|
#
|
|
|
|
---
|
|
shared-library-atoms:
|
|
- name: malloc
|
|
load-name: libc.so
|
|
type: code
|
|
size: 0
|
|
|
|
- name: free
|
|
load-name: libc.so
|
|
|
|
- name: fast_malloc
|
|
load-name: libc.so
|
|
can-be-null: at-runtime
|
|
|
|
- name: stdout
|
|
load-name: libc.so
|
|
type: data
|
|
size: 8
|
|
|
|
...
|
|
|
|
# CHECK: shared-library-atoms:
|
|
# CHECK: name: malloc
|
|
# CHECK: load-name: libc.so
|
|
# CHECK: name: free
|
|
# CHECK: load-name: libc.so
|
|
# CHECK: name: fast_malloc
|
|
# CHECK: load-name: libc.so
|
|
# CHECK: can-be-null: at-runtime
|
|
# CHECK: name: stdout
|
|
# CHECK: load-name: libc.so
|
|
# CHECK: type: data
|
|
# CHECK: size: 8
|
|
# CHECK: ...
|