]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/CodeGenCXX/arm-cc.cpp
Vendor import of clang 3.9.0 release r280324:
[FreeBSD/FreeBSD.git] / test / CodeGenCXX / arm-cc.cpp
1 // RUN: %clang_cc1 %s -triple=arm-unknown-linux-gnueabi -target-abi aapcs -emit-llvm -o - | FileCheck %s
2
3 class SMLoc {
4  const char *Ptr;
5 public:
6  SMLoc();
7  SMLoc(const SMLoc &RHS);
8 };
9 SMLoc foo(void *p);
10 void bar(void *x) {
11  foo(x);
12 }
13 void zed(SMLoc x);
14 void baz() {
15   SMLoc a;
16   zed(a);
17 }
18
19 // CHECK: declare void @_Z3fooPv(%class.SMLoc* sret, i8*)
20 // CHECK: declare void @_Z3zed5SMLoc(%class.SMLoc*)