[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / CodeGenCXX / arm64-constructor-return.cpp
blob54d6cfcff8bd3a5acf5a219df2edbc232092d9ec
1 // RUN: %clang_cc1 %s -triple=arm64-apple-ios7.0.0 -emit-llvm -o - | FileCheck %s
2 // rdar://12162905
4 struct S {
5 S();
6 int iField;
7 };
9 S::S() {
10 iField = 1;
13 // CHECK: ptr @_ZN1SC2Ev(ptr {{[^,]*}} %this)
15 // CHECK: ptr @_ZN1SC1Ev(ptr {{[^,]*}} returned align 4 dereferenceable(4) %this)
16 // CHECK: [[THISADDR:%[a-zA-Z0-9.]+]] = alloca ptr
17 // CHECK: store ptr %this, ptr [[THISADDR]]
18 // CHECK: [[THIS1:%.*]] = load ptr, ptr [[THISADDR]]
19 // CHECK: ret ptr [[THIS1]]