summaryrefslogtreecommitdiffstats
path: root/llvm/test/MC/WebAssembly/custom-code-section.ll
blob: 7d0a5bede8c83c20de2f998e9b38eba058f4c7e7 (plain)
1
2
3
4
5
6
7
8
9
10
11
; RUN: llc -O2 -filetype=obj %s -o %t.o

target triple = "wasm32-unknown-unknown-wasm"

; Wasm silently ignores custom sections for code.
; We had a bug where this cause a crash

define hidden void @call_indirect() section "some_section_name" {
entry:
  ret void
}
OpenPOWER on IntegriCloud