brintos

brintos / llvm-project-archived public Read only

0
0
Text · 459 B · 939615f Raw
21 lines · cpp
1// RUN: %clang_cc1 %s -triple=arm-unknown-linux-gnueabi -target-abi aapcs -emit-llvm -o - | FileCheck %s2 3class SMLoc {4 const char *Ptr;5public:6 SMLoc();7 SMLoc(const SMLoc &RHS);8};9SMLoc foo(void *p);10void bar(void *x) {11 foo(x);12}13void zed(SMLoc x);14void 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)21