Debian Codegraph @

clang/test/CodeGenCXX/arm-cc.cpp

raw
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(ptr dead_on_unwind writable sret(%class.SMLoc) align 4, ptr noundef)
20 // CHECK: declare void @_Z3zed5SMLoc(ptr dead_on_return noundef)