[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / CodeGenObjC / compound-literal-property-access.m
blob5a742f1bbfc854167749d618b6568007fd51ab9e
1 // RUN: %clang_cc1 %s -emit-llvm -triple x86_64-apple-darwin -o - | FileCheck %s
3 typedef __attribute__((__ext_vector_type__(2))) float vector_float2;
5 @interface GPAgent2D
6 @property (nonatomic, assign) vector_float2 position;
7 @end
9 @interface GPGoal @end
11 @implementation GPGoal
12 -(void)getForce {
13     GPAgent2D* targetAgent;
14     (vector_float2){targetAgent.position.x, targetAgent.position.y};
16 @end
18 // CHECK: [[CL:%.*]] = alloca <2 x float>, align 8
19 // CHECK: store <2 x float> [[VECINIT:%.*]], ptr [[CL]]
20 // CHECK: [[FOURTEEN:%.*]] = load <2 x float>, ptr [[CL]]