]> granicus.if.org Git - clang/commitdiff
Add test for previous commit.
authorRafael Espindola <rafael.espindola@gmail.com>
Tue, 8 Jun 2010 03:29:31 +0000 (03:29 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Tue, 8 Jun 2010 03:29:31 +0000 (03:29 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@105594 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGenCXX/arm-cc.cpp [new file with mode: 0644]

diff --git a/test/CodeGenCXX/arm-cc.cpp b/test/CodeGenCXX/arm-cc.cpp
new file mode 100644 (file)
index 0000000..d9a796e
--- /dev/null
@@ -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*)