Skip to content
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