[cfe-commits] r105594 - /cfe/trunk/test/CodeGenCXX/arm-cc.cpp
Rafael Espindola
rafael.espindola at gmail.com
Mon Jun 7 20:29:31 PDT 2010
Author: rafael
Date: Mon Jun 7 22:29:31 2010
New Revision: 105594
URL: http://llvm.org/viewvc/llvm-project?rev=105594&view=rev
Log:
Add test for previous commit.
Added:
cfe/trunk/test/CodeGenCXX/arm-cc.cpp
Added: cfe/trunk/test/CodeGenCXX/arm-cc.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenCXX/arm-cc.cpp?rev=105594&view=auto
==============================================================================
--- cfe/trunk/test/CodeGenCXX/arm-cc.cpp (added)
+++ cfe/trunk/test/CodeGenCXX/arm-cc.cpp Mon Jun 7 22:29:31 2010
@@ -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*)
More information about the cfe-commits
mailing list