# RUN: llvm-objdump -h %p/Inputs/trivial.obj.wasm | FileCheck %s

# CHECK:      Sections:
# CHECK-NEXT: Idx Name          Size    VMA              Type
# CHECK-NEXT:  0 TYPE          00000011 0000000000000000
# CHECK-NEXT:  1 IMPORT        0000005d 0000000000000000
# CHECK-NEXT:  2 FUNCTION      00000003 0000000000000000
# CHECK-NEXT:  3 CODE          00000024 0000000000000000 TEXT
# CHECK-NEXT:  4 DATA          0000001c 0000000000000000 DATA
# CHECK-NEXT:  5 linking       0000006d 0000000000000000
# CHECK-NEXT:  6 reloc.CODE    0000000f 0000000000000000

# RUN: llvm-objdump -p %p/Inputs/trivial.obj.wasm | FileCheck %s -check-prefix CHECK-HEADER

# CHECK-HEADER: Program Header:
# CHECK-HEADER: Version: 0x1

# RUN: llvm-objdump -s --section=CODE %p/Inputs/trivial.obj.wasm | FileCheck %s -check-prefix CHECK-SECTIONS

# CHECK-SECTIONS: Contents of section CODE:
# CHECK-SECTIONS: 0000 02170041 80808080 00108080 8080001a  ...A............
# CHECK-SECTIONS: 0010 10838080 80004100 0b0a0041 00108180  ......A....A....
# CHECK-SECTIONS: 0020 8080000b                             ....
