xref: /llvm-project/lld/test/wasm/signature-mismatch-debug-info.test (revision 7d2c2af0453c28d0902668523099a1f46a0bc348)
1# This is a regression test that ensures a function signature mismatch in
2# functions with debug info does not cause does not cause a segmentation fault
3# when writing .debug_info section.
4
5; RUN: llvm-mc -filetype=obj -triple=wasm32-unknown-unknown %p/Inputs/signature-mismatch-debug-info-a.s -o %t.a.o
6; RUN: llvm-mc -filetype=obj -triple=wasm32-unknown-unknown %p/Inputs/signature-mismatch-debug-info-b.s -o %t.b.o
7; RUN: llvm-mc -filetype=obj -triple=wasm32-unknown-unknown %p/Inputs/signature-mismatch-debug-info-main.s -o %t.main.o
8; RUN: wasm-ld -o %t.wasm %t.a.o %t.b.o %t.main.o --export=main --no-entry
9