1 ; RUN: llvm-as %s -o %t.o
2 ; RUN: llvm-as %p/Inputs/type-merge2.ll -o %t2.o
3 ; RUN: %gold -plugin %llvmshlibdir/LLVMgold%shlibext \
5 ; RUN: --plugin-opt=save-temps \
6 ; RUN: -shared %t.o %t2.o -o %t3.o
7 ; RUN: llvm-dis %t3.o.0.2.internalize.bc -o - | FileCheck %s
9 target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
10 target triple = "x86_64-unknown-linux-gnu"
14 call void @bar(%zed* null)
17 declare void @bar(%zed*)
19 ; CHECK: %zed = type { i8 }
20 ; CHECK-NEXT: %zed.0 = type { i16 }
22 ; CHECK: define void @foo() {
23 ; CHECK-NEXT: call void bitcast (void (%zed.0*)* @bar to void (%zed*)*)(%zed* null)
24 ; CHECK-NEXT: ret void
27 ; CHECK: define void @bar(%zed.0* %this) {
28 ; CHECK-NEXT: store %zed.0* %this, %zed.0** null
29 ; CHECK-NEXT: ret void