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