xref: /llvm-project/llvm/test/tools/llvm-readobj/wasm/wasm-file-headers.test (revision dbf520f617440d62ca46f64cdc41159945911902)
1*dbf520f6SGeorgii Rymar# RUN: yaml2obj %s -o %t.wasm
2*dbf520f6SGeorgii Rymar# RUN: llvm-readobj -h %t.wasm \
3*dbf520f6SGeorgii Rymar# RUN:  | FileCheck %s -DFILE=%t.wasm --strict-whitespace --match-full-lines
4*dbf520f6SGeorgii Rymar
5*dbf520f6SGeorgii Rymar#      CHECK:File: [[FILE]]
6*dbf520f6SGeorgii Rymar# CHECK-NEXT:Format: WASM
7*dbf520f6SGeorgii Rymar# CHECK-NEXT:Arch: wasm32
8*dbf520f6SGeorgii Rymar# CHECK-NEXT:AddressSize: 32bit
9*dbf520f6SGeorgii Rymar# CHECK-NEXT:Version: 0x1
10*dbf520f6SGeorgii Rymar# CHECK-NOT:{{.}}
11*dbf520f6SGeorgii Rymar
12*dbf520f6SGeorgii Rymar--- !WASM
13*dbf520f6SGeorgii RymarFileHeader:
14*dbf520f6SGeorgii Rymar  Version: 0x00000001
15