Mercurial > hg > CbC > CbC_llvm
view clang/test/CodeGenObjC/compound-literal-property-access.m @ 266:00f31e85ec16 default tip
Added tag current for changeset 31d058e83c98
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Sat, 14 Oct 2023 10:13:55 +0900 (2023-10-14) |
parents | 1f2b6ac9f198 |
children |
line wrap: on
line source
// RUN: %clang_cc1 %s -emit-llvm -triple x86_64-apple-darwin -o - | FileCheck %s // rdar://20407999 typedef __attribute__((__ext_vector_type__(2))) float vector_float2; @interface GPAgent2D @property (nonatomic, assign) vector_float2 position; @end @interface GPGoal @end @implementation GPGoal -(void)getForce { GPAgent2D* targetAgent; (vector_float2){targetAgent.position.x, targetAgent.position.y}; } @end // CHECK: [[CL:%.*]] = alloca <2 x float>, align 8 // CHECK: store <2 x float> [[VECINIT:%.*]], ptr [[CL]] // CHECK: [[FOURTEEN:%.*]] = load <2 x float>, ptr [[CL]]