2018-06-29 01:04:58 +08:00
|
|
|
; RUN: llvm-as %S/Inputs/archive.ll -o %t1.o
|
|
|
|
; RUN: rm -f %t.a
|
|
|
|
; RUN: llvm-ar rcs %t.a %t1.o
|
|
|
|
; RUN: llvm-as %s -o %t2.o
|
2018-09-28 05:06:25 +08:00
|
|
|
; RUN: wasm-ld --export-dynamic %t2.o %t.a -o %t3
|
2018-06-29 01:04:58 +08:00
|
|
|
; RUN: obj2yaml %t3 | FileCheck %s
|
|
|
|
|
|
|
|
target datalayout = "e-m:e-p:32:32-i64:64-n32:64-S128"
|
|
|
|
target triple = "wasm32-unknown-unknown"
|
|
|
|
|
|
|
|
define void @_start() {
|
|
|
|
call void @f()
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
declare void @f()
|
|
|
|
|
|
|
|
; CHECK: Name: name
|
|
|
|
; CHECK-NEXT: FunctionNames:
|
|
|
|
; CHECK-NEXT: - Index: 0
|
|
|
|
; CHECK-NEXT: Name: _start
|
2019-03-02 06:35:47 +08:00
|
|
|
; CHECK-NEXT: - Index: 1
|
2018-06-29 01:04:58 +08:00
|
|
|
; CHECK-NEXT: Name: f
|