summaryrefslogtreecommitdiffstats
path: root/llvm/test/MC/WebAssembly/custom-code-section.ll
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/MC/WebAssembly/custom-code-section.ll')
-rw-r--r--llvm/test/MC/WebAssembly/custom-code-section.ll9
1 files changed, 9 insertions, 0 deletions
diff --git a/llvm/test/MC/WebAssembly/custom-code-section.ll b/llvm/test/MC/WebAssembly/custom-code-section.ll
new file mode 100644
index 00000000000..d528d426e5b
--- /dev/null
+++ b/llvm/test/MC/WebAssembly/custom-code-section.ll
@@ -0,0 +1,9 @@
+; RUN: llc -mtriple wasm32-unknown-unknown-wasm -O2 -filetype=obj %s -o %t.o
+
+; 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