annotate clang/test/CodeGenObjC/assign.m @ 206:f17a3b42b08b

Added tag before-12 for changeset b7591485f4cd
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 07 Jun 2021 21:25:57 +0900
parents 1d019706d866
children 2e18cbf3894f
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
150
anatofuz
parents:
diff changeset
1 // RUN: %clang_cc1 -triple x86_64 -fobjc-runtime=macosx-fragile-10.5 -emit-llvm -o - %s | FileCheck %s
anatofuz
parents:
diff changeset
2
anatofuz
parents:
diff changeset
3 struct s0 {
anatofuz
parents:
diff changeset
4 int x;
anatofuz
parents:
diff changeset
5 };
anatofuz
parents:
diff changeset
6
anatofuz
parents:
diff changeset
7 @interface C0
anatofuz
parents:
diff changeset
8 @property int x0;
anatofuz
parents:
diff changeset
9 @property _Complex int x1;
anatofuz
parents:
diff changeset
10 @property struct s0 x2;
anatofuz
parents:
diff changeset
11 @end
anatofuz
parents:
diff changeset
12
anatofuz
parents:
diff changeset
13 // Check that we get exactly the message sends we expect, and no more.
anatofuz
parents:
diff changeset
14 //
anatofuz
parents:
diff changeset
15 // CHECK-LABEL: define void @f0
anatofuz
parents:
diff changeset
16 void f0(C0 *a) {
anatofuz
parents:
diff changeset
17 // CHECK: objc_msgSend
anatofuz
parents:
diff changeset
18 int l0 = (a.x0 = 1);
anatofuz
parents:
diff changeset
19
anatofuz
parents:
diff changeset
20 // CHECK: objc_msgSend
anatofuz
parents:
diff changeset
21 _Complex int l1 = (a.x1 = 1);
anatofuz
parents:
diff changeset
22
anatofuz
parents:
diff changeset
23 // CHECK: objc_msgSend
anatofuz
parents:
diff changeset
24 struct s0 l2 = (a.x2 = (struct s0) { 1 });
anatofuz
parents:
diff changeset
25
anatofuz
parents:
diff changeset
26 // CHECK: objc_msgSend
anatofuz
parents:
diff changeset
27 // CHECK: objc_msgSend
anatofuz
parents:
diff changeset
28 int l3 = (a.x0 += 1);
anatofuz
parents:
diff changeset
29
anatofuz
parents:
diff changeset
30 // CHECK: objc_msgSend
anatofuz
parents:
diff changeset
31 // CHECK: objc_msgSend
anatofuz
parents:
diff changeset
32 _Complex int l4 = (a.x1 += 1);
anatofuz
parents:
diff changeset
33
anatofuz
parents:
diff changeset
34 // CHECK-NOT: objc_msgSend
anatofuz
parents:
diff changeset
35 // CHECK: }
anatofuz
parents:
diff changeset
36 }