Skip to content

Commit 3ab947e

Browse files
committed
[lld/mac] Add test for bug fixed in reland 82ca390
Differential Revision: https://reviews.llvm.org/D135889
1 parent c07e838 commit 3ab947e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

lld/test/MachO/undef-spell-corrector.s

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,13 @@ call bcde
8686
call abcd
8787
call abde
8888

89+
# Creates a nullptr entry in ObjFile::symbols, to test we don't crash on that.
90+
.section __DWARF,__debug_aranges,regular,debug
91+
ltmp1:
92+
.byte 0
93+
94+
.subsections_via_symbols
95+
8996
#--- bbcde-abcdd.s
9097
call bbcde
9198
call abcdd

0 commit comments

Comments
 (0)