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