xref: /llvm-project/lld/test/wasm/lto/lto-start.ll (revision a35ebcf255046bc78ea86b3c524e0836425a1156)
1; RUN: llvm-as %s -o %t.o
2; RUN: wasm-ld %t.o -o %t.wasm
3; RUN: obj2yaml %t.wasm | FileCheck %s
4
5; CHECK:        - Type:            CUSTOM
6; CHECK-NEXT:     Name:            name
7; CHECK-NEXT:     FunctionNames:
8; CHECK-NEXT:       - Index:           0
9; CHECK-NEXT:         Name:            _start
10
11target datalayout = "e-m:e-p:32:32-p10:8:8-p20:8:8-i64:64-n32:64-S128-ni:1:10:20"
12target triple = "wasm32-unknown-unknown-wasm"
13
14define void @_start() {
15  ret void
16}
17