From 85dc7e0909861ab9f9b7bdad623e1971ec21e13f Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Tue, 8 Jun 2010 03:29:31 +0000 Subject: [PATCH] Add test for previous commit. llvm-svn: 105594 --- clang/test/CodeGenCXX/arm-cc.cpp | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 clang/test/CodeGenCXX/arm-cc.cpp diff --git a/clang/test/CodeGenCXX/arm-cc.cpp b/clang/test/CodeGenCXX/arm-cc.cpp new file mode 100644 index 000000000000..d9a796ea863d --- /dev/null +++ b/clang/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*)