brintos

brintos / llvm-project-archived public Read only

0
0
Text · 640 B · 713c53a Raw
24 lines · plain
1; RUN: llvm-as %S/Inputs/archive.ll -o %t1.o2; RUN: rm -f %t.a3; RUN: llvm-ar rcs %t.a %t1.o4; RUN: llvm-as %s -o %t2.o5; RUN: wasm-ld --export-dynamic %t2.o %t.a -o %t36; RUN: obj2yaml %t3 | FileCheck %s7 8target datalayout = "e-m:e-p:32:32-p10:8:8-p20:8:8-i64:64-n32:64-S128-ni:1:10:20"9target triple = "wasm32-unknown-unknown"10 11define void @_start() {12  call void @f()13  ret void14}15 16declare void @f()17 18; CHECK:         Name:            name19; CHECK-NEXT:    FunctionNames:20; CHECK-NEXT:      - Index:           021; CHECK-NEXT:        Name:            _start22; CHECK-NEXT:      - Index:           123; CHECK-NEXT:        Name:            f24