1 ; RUN: opt %s -argpromotion -S -o - | FileCheck %s
4 target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
6 %pair = type { i32, i32 }
8 declare i8* @foo(%pair*)
10 define internal void @bar(%pair* byval %Data) {
11 ; CHECK: define internal void @bar(i32 %Data.0, i32 %Data.1)
12 ; CHECK: %Data = alloca %pair
14 ; CHECK: call i8* @foo(%pair* %Data)
15 tail call i8* @foo(%pair* %Data)
19 define void @zed(%pair* byval %Data) {
20 call void @bar(%pair* byval %Data)