aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2010-06-08 03:29:31 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2010-06-08 03:29:31 +0000
commit85dc7e0909861ab9f9b7bdad623e1971ec21e13f (patch)
tree71279e12351eec69eb6fa401c7af1536ab61ee24
parent4904e32d46a9b44b928173f0e52578ad953d22ed (diff)
downloadllvm-85dc7e0909861ab9f9b7bdad623e1971ec21e13f.zip
llvm-85dc7e0909861ab9f9b7bdad623e1971ec21e13f.tar.gz
llvm-85dc7e0909861ab9f9b7bdad623e1971ec21e13f.tar.bz2
Add test for previous commit.
llvm-svn: 105594
-rw-r--r--clang/test/CodeGenCXX/arm-cc.cpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/clang/test/CodeGenCXX/arm-cc.cpp b/clang/test/CodeGenCXX/arm-cc.cpp
new file mode 100644
index 0000000..d9a796e
--- /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*)