1// RUN: %clang_cc1 -triple sparcv9-unknown-unknown -emit-llvm %s -o - | FileCheck %s
2
3struct pod {
4  int a, b;
5};
6
7void f0();
8void f1(struct pod);
9
10struct notpod {
11  int a, b;
12  ~notpod() { f0(); }
13};
14
15void f2(struct notpod);
16
17// CHECK-LABEL: caller
18// CHECK: call void @_Z2f13pod(i64
19// CHECK: call void @_Z2f26notpod(%struct.notpod*
20void caller()
21{
22  pod p1;
23  notpod p2;
24  f1(p1);
25  f2(p2);
26}
27