Skip to content

[lld][MachO] Test with exported_symbol and exported_symbols_list together #127243

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 18, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions lld/test/MachO/export-options.s
Original file line number Diff line number Diff line change
Expand Up @@ -117,13 +117,15 @@
## Check that only string-literal patterns match
## Check that comments and blank lines are stripped from symbol list
# RUN: %lld -dylib %t/symdefs.o -o %t/literal \
# RUN: -exported_symbols_list %t/literals.txt
# RUN: -exported_symbols_list %t/literals.txt \
# RUN: -exported_symbol singleton
# RUN: llvm-objdump --macho --exports-trie %t/literal | \
# RUN: FileCheck --check-prefix=LITERAL %s

# LITERAL-DAG: literal_only
# LITERAL-DAG: literal_also
# LITERAL-DAG: globby_also
# LITERAL-DAG: singleton
# LITERAL-NOT: globby_only

## Check that only glob patterns match
Expand Down Expand Up @@ -245,7 +247,7 @@ _keep_lazy:

#--- symdefs.s

.globl literal_only, literal_also, globby_only, globby_also
.globl literal_only, literal_also, globby_only, globby_also, singleton
literal_only:
retq
literal_also:
Expand All @@ -254,6 +256,8 @@ globby_only:
retq
globby_also:
retq
singleton:
retq

#--- literals.txt

Expand Down