1 # RUN: llvm-mc -filetype=obj -triple=wasm32-unknown-unknown -o %t.o %s
2 # RUN: wasm-ld --no-entry %t.o -o %t.wasm
3 # RUN: obj2yaml %t.wasm | FileCheck %s
5 # Like command-exports.s, but with no ctors or dtors, so there should be no
6 # __wasm_call_ctors, __cxa_atexit, or wrappers.
10 .functype foo_i32 (i32, i32) -> (i32)
18 .functype foo_f64 (f64, f64) -> (f64)
24 .export_name foo_i32, foo_i32
25 .export_name foo_f64, foo_f64
27 # CHECK: - Type: EXPORT
28 # CHECK-NEXT: Exports:
29 # CHECK-NEXT: - Name: memory
30 # CHECK-NEXT: Kind: MEMORY
31 # CHECK-NEXT: Index: 0
32 # CHECK-NEXT: - Name: foo_i32
33 # CHECK-NEXT: Kind: FUNCTION
34 # CHECK-NEXT: Index: 0
35 # CHECK-NEXT: - Name: foo_f64
36 # CHECK-NEXT: Kind: FUNCTION
37 # CHECK-NEXT: Index: 1
42 # CHECK-NEXT: Locals: []
43 # CHECK-NEXT: Body: 200020016A0B
44 # CHECK-NEXT: - Index: 1
45 # CHECK-NEXT: Locals: []
46 # CHECK-NEXT: Body: 20002001A00B
48 # CHECK: - Type: CUSTOM
49 # CHECK-NEXT: Name: name
50 # CHECK-NEXT: FunctionNames:
51 # CHECK-NEXT: - Index: 0
52 # CHECK-NEXT: Name: foo_i32
53 # CHECK-NEXT: - Index: 1
54 # CHECK-NEXT: Name: foo_f64