annotate clang/test/SemaObjC/debugger-support.m @ 180:680fa57a2f20

fix compile errors.
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Sat, 30 May 2020 17:44:06 +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-apple-darwin10 -fdebugger-support %s -emit-llvm -o - | FileCheck %s
anatofuz
parents:
diff changeset
2
anatofuz
parents:
diff changeset
3 // rdar://problem/9416370
anatofuz
parents:
diff changeset
4 void test0(id x) {
anatofuz
parents:
diff changeset
5 struct A { int w, x, y, z; };
anatofuz
parents:
diff changeset
6 struct A result = (struct A) [x makeStruct];
anatofuz
parents:
diff changeset
7 // CHECK: define void @test0(
anatofuz
parents:
diff changeset
8 // CHECK: [[X:%.*]] = alloca i8*, align 8
anatofuz
parents:
diff changeset
9 // CHECK-NEXT: [[RESULT:%.*]] = alloca [[A:%.*]], align 4
anatofuz
parents:
diff changeset
10 // CHECK-NEXT: store i8* {{%.*}}, i8** [[X]],
anatofuz
parents:
diff changeset
11 // CHECK-NEXT: [[T0:%.*]] = load i8*, i8** [[X]],
anatofuz
parents:
diff changeset
12 // CHECK-NEXT: [[T1:%.*]] = load i8*, i8** @OBJC_SELECTOR_REFERENCES_
anatofuz
parents:
diff changeset
13 // CHECK-NEXT: [[T2:%.*]] = call { i64, i64 } bitcast (i8* (i8*, i8*, ...)* @objc_msgSend to { i64, i64 } (i8*, i8*)*)(i8* [[T0]], i8* [[T1]])
anatofuz
parents:
diff changeset
14 }