Skip to content

Commit 270284d

Browse files
authored
[lld][MachO] Test with exported_symbol and exported_symbols_list together (#127243)
1 parent 0cc532b commit 270284d

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

lld/test/MachO/export-options.s

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,13 +117,15 @@
117117
## Check that only string-literal patterns match
118118
## Check that comments and blank lines are stripped from symbol list
119119
# RUN: %lld -dylib %t/symdefs.o -o %t/literal \
120-
# RUN: -exported_symbols_list %t/literals.txt
120+
# RUN: -exported_symbols_list %t/literals.txt \
121+
# RUN: -exported_symbol singleton
121122
# RUN: llvm-objdump --macho --exports-trie %t/literal | \
122123
# RUN: FileCheck --check-prefix=LITERAL %s
123124

124125
# LITERAL-DAG: literal_only
125126
# LITERAL-DAG: literal_also
126127
# LITERAL-DAG: globby_also
128+
# LITERAL-DAG: singleton
127129
# LITERAL-NOT: globby_only
128130

129131
## Check that only glob patterns match
@@ -245,7 +247,7 @@ _keep_lazy:
245247

246248
#--- symdefs.s
247249

248-
.globl literal_only, literal_also, globby_only, globby_also
250+
.globl literal_only, literal_also, globby_only, globby_also, singleton
249251
literal_only:
250252
retq
251253
literal_also:
@@ -254,6 +256,8 @@ globby_only:
254256
retq
255257
globby_also:
256258
retq
259+
singleton:
260+
retq
257261

258262
#--- literals.txt
259263

0 commit comments

Comments
 (0)