xref: /aosp_15_r20/external/llvm/test/MC/ELF/relax-crash.s (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o %t
2*9880d681SAndroid Build Coastguard Worker
3*9880d681SAndroid Build Coastguard Worker// This is a test that we don't crash. We used to do so by going in a infinite
4*9880d681SAndroid Build Coastguard Worker// recursion trying to compute the size of a MCDwarfLineAddrFragment.
5*9880d681SAndroid Build Coastguard Worker
6*9880d681SAndroid Build Coastguard Worker       .section        .debug_line,"",@progbits
7*9880d681SAndroid Build Coastguard Worker       .text
8*9880d681SAndroid Build Coastguard Worker       .file 1 "Disassembler.ii"
9*9880d681SAndroid Build Coastguard Worker       .section foo
10*9880d681SAndroid Build Coastguard Worker       .loc 1 1 0
11*9880d681SAndroid Build Coastguard Worker       ret
12