xref: /llvm-project/llvm/test/MC/WebAssembly/custom-code-section.ll (revision a5908009cdf96ed376d73f91a8418b97057b663e)
18cbfbd6dSSam Clegg; RUN: llc -O2 -filetype=obj %s -o %t.o
28cbfbd6dSSam Clegg
3*a5908009SSam Cleggtarget triple = "wasm32-unknown-unknown"
4e1694f9bSSam Clegg
5e1694f9bSSam Clegg; Wasm silently ignores custom sections for code.
6e1694f9bSSam Clegg; We had a bug where this cause a crash
7e1694f9bSSam Clegg
8e1694f9bSSam Cleggdefine hidden void @call_indirect() section "some_section_name" {
9e1694f9bSSam Cleggentry:
10e1694f9bSSam Clegg  ret void
11e1694f9bSSam Clegg}
12