summaryrefslogtreecommitdiff
path: root/clang/test/CodeGenCXX/arm-cc.cpp
blob: 6027746b9ae80880858cdbbb5f45382be4278143 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// RUN: %clang_cc1 %s -triple=arm-unknown-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 void @_Z3fooPv(%class.SMLoc* sret, i8*)
// CHECK: declare void @_Z3zed5SMLoc(%class.SMLoc*)