27 lines · cpp
1// RUN: %clang_cc1 -triple sparcv9-unknown-unknown -emit-llvm %s -o - | FileCheck %s2 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: caller18// CHECK: call void @_Z2f13pod(i6419// CHECK: call void @_Z2f26notpod(ptr20void caller()21{22 pod p1;23 notpod p2;24 f1(p1);25 f2(p2);26}27