Debian Codegraph @

clang/test/CodeGenCXX/arm64-constructor-return.cpp

raw
1 // RUN: %clang_cc1 %s -triple=arm64-apple-ios7.0.0 -emit-llvm -o - | FileCheck %s
2
3 struct S {
4 S();
5 int iField;
6 };
7
8 S::S() {
9 iField = 1;
10 };
11
12 // CHECK: ptr @_ZN1SC2Ev(ptr {{[^,]*}} %this)
13
14 // CHECK: ptr @_ZN1SC1Ev(ptr {{[^,]*}} returned align 4 dereferenceable(4) %this)
15 // CHECK: [[THISADDR:%[a-zA-Z0-9.]+]] = alloca ptr
16 // CHECK: store ptr %this, ptr [[THISADDR]]
17 // CHECK: [[THIS1:%.*]] = load ptr, ptr [[THISADDR]]
18 // CHECK: ret ptr [[THIS1]]