1*f4a2713aSLionel Sambuc // RUN: %clang_cc1 %s -triple=arm-unknown-linux-gnueabi -target-abi aapcs -emit-llvm -o - | FileCheck %s 2*f4a2713aSLionel Sambuc 3*f4a2713aSLionel Sambuc class SMLoc { 4*f4a2713aSLionel Sambuc const char *Ptr; 5*f4a2713aSLionel Sambuc public: 6*f4a2713aSLionel Sambuc SMLoc(); 7*f4a2713aSLionel Sambuc SMLoc(const SMLoc &RHS); 8*f4a2713aSLionel Sambuc }; 9*f4a2713aSLionel Sambuc SMLoc foo(void *p); bar(void * x)10*f4a2713aSLionel Sambucvoid bar(void *x) { 11*f4a2713aSLionel Sambuc foo(x); 12*f4a2713aSLionel Sambuc } 13*f4a2713aSLionel Sambuc void zed(SMLoc x); baz()14*f4a2713aSLionel Sambucvoid baz() { 15*f4a2713aSLionel Sambuc SMLoc a; 16*f4a2713aSLionel Sambuc zed(a); 17*f4a2713aSLionel Sambuc } 18*f4a2713aSLionel Sambuc 19*f4a2713aSLionel Sambuc // CHECK: declare void @_Z3fooPv(%class.SMLoc* sret, i8*) 20*f4a2713aSLionel Sambuc // CHECK: declare void @_Z3zed5SMLoc(%class.SMLoc*) 21