brintos

brintos / llvm-project-archived public Read only

0
0
Text · 451 B · ec842cb Raw
19 lines · cpp
1// RUN: %clang_cc1 %s -triple=arm64-apple-ios7.0.0 -emit-llvm -o - | FileCheck %s2 3struct S {4  S();5  int iField;6};7 8S::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 ptr16// CHECK: store ptr %this, ptr [[THISADDR]]17// CHECK: [[THIS1:%.*]] = load ptr, ptr [[THISADDR]]18// CHECK: ret ptr [[THIS1]]19