2 ; RUN: llvm-as %s -o %t.o
3 ; RUN: llvm-as %p/Inputs/type-merge.ll -o %t2.o
4 ; RUN: ld.lld %t.o %t2.o -o %t -shared -save-temps
5 ; RUN: llvm-dis < %t.0.0.preopt.bc | FileCheck %s
7 target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
8 target triple = "x86_64-unknown-linux-gnu"
11 call void @bar(ptr null)
14 declare void @bar(ptr)
16 ; CHECK: define void @foo() {
17 ; CHECK-NEXT: call void @bar(ptr null)
18 ; CHECK-NEXT: ret void
21 ; CHECK: declare void @bar(ptr)
23 ; CHECK: define void @zed() {
24 ; CHECK-NEXT: call void @bar()
25 ; CHECK-NEXT: ret void