Add test for previous commit.

llvm-svn: 105594
This commit is contained in:
Rafael Espindola 2010-06-08 03:29:31 +00:00
parent 4904e32d46
commit 85dc7e0909
1 changed files with 20 additions and 0 deletions

View File

@ -0,0 +1,20 @@
// RUN: %clang_cc1 %s -triple=arm-linux-gnueabi -target-abi aapcs -emit-llvm -o - | FileCheck %s
class SMLoc {
const char *Ptr;
public:
SMLoc();
SMLoc(const SMLoc &RHS);
};
SMLoc foo(void *p);
void bar(void *x) {
foo(x);
}
void zed(SMLoc x);
void baz() {
SMLoc a;
zed(a);
}
// CHECK: declare arm_aapcscc void @_Z3fooPv(%class.SMLoc* sret, i8*)
// CHECK: declare arm_aapcscc void @_Z3zed5SMLoc(%class.SMLoc*)