llvm-project/clang/test/CodeGenCXX/arm-cc.cpp

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

21 lines
410 B
C++
Raw Normal View History

// 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 align 4, i8*)
// CHECK: declare void @_Z3zed5SMLoc(%class.SMLoc*)