diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2010-06-08 03:29:31 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2010-06-08 03:29:31 +0000 |
commit | 99b8b92f5148126bb32ee75ebd44bd526f39c411 (patch) | |
tree | d1b945e40ca8e69ee9b2ea2dda1bf515fb76618d | |
parent | 26a31428f130b66f61834d1b4d1cf72f590f70b9 (diff) |
Add test for previous commit.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@105594 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/CodeGenCXX/arm-cc.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/test/CodeGenCXX/arm-cc.cpp b/test/CodeGenCXX/arm-cc.cpp new file mode 100644 index 0000000000..d9a796ea86 --- /dev/null +++ b/test/CodeGenCXX/arm-cc.cpp @@ -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*) |