1 ; RUN: opt -S -mergefunc < %s | FileCheck %s
8 @x = constant { i32 (i32)*, i32 (i32)* }
9 { i32 (i32)* bitcast (i32 (%A)* @a to i32 (i32)*),
10 i32 (i32)* bitcast (i32 (%B)* @b to i32 (i32)*) }
11 ; CHECK: { i32 (i32)* bitcast (i32 (%A)* @a to i32 (i32)*), i32 (i32)* bitcast (i32 (%A)* @a to i32 (i32)*) }
13 define internal i32 @a(%A) unnamed_addr {
19 define internal i32 @b(%B) unnamed_addr {
26 insertvalue %B undef, i32 %0, 0
28 ; CHECK: call i32 bitcast (i32 (%A)* @a to i32 (%B)*)(%B %2)