mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-05 02:07:16 +00:00
b068ce98cd
Differential Revision: https://reviews.llvm.org/D45579 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@329947 91177308-0d34-0410-b5e6-96231b3b80d8
24 lines
549 B
LLVM
24 lines
549 B
LLVM
; RUN: llc -filetype=obj %s -o - | llvm-readobj -s | FileCheck %s
|
|
|
|
; Test the mechanism for defining user custom sections.
|
|
|
|
target triple = "wasm32-unknown-unknown-wasm"
|
|
|
|
!0 = !{ !"red", !"foo" }
|
|
!1 = !{ !"green", !"bar" }
|
|
!2 = !{ !"green", !"qux" }
|
|
!wasm.custom_sections = !{ !0, !1, !2 }
|
|
|
|
; CHECK: Section {
|
|
; CHECK: Type: CUSTOM (0x0)
|
|
; CHECK: Size: 3
|
|
; CHECK: Offset: 72
|
|
; CHECK: Name: red
|
|
; CHECK: }
|
|
; CHECK: Section {
|
|
; CHECK: Type: CUSTOM (0x0)
|
|
; CHECK: Size: 6
|
|
; CHECK: Offset: 85
|
|
; CHECK: Name: green
|
|
; CHECK: }
|