comparison clang/test/CodeGenObjC/nontrivial-struct-param-init.m @ 150:1d019706d866

LLVM10
author anatofuz
date Thu, 13 Feb 2020 15:10:13 +0900
parents
children 2e18cbf3894f
comparison
equal deleted inserted replaced
147:c2174574ed3a 150:1d019706d866
1 // RUN: %clang_cc1 -triple i386-apple-watchos6.0-simulator -emit-llvm -fblocks -fobjc-arc -o - %s | FileCheck %s
2
3 // CHECK: %[[STRUCT_S:.*]] = type { i8* }
4
5 typedef struct {
6 id x;
7 } S;
8
9 // CHECK: define void @test0(i8* %[[A_0:.*]])
10 // CHECK: %[[A:.*]] = alloca %[[STRUCT_S]], align 4
11 // CHECK: %[[X:.*]] = getelementptr inbounds %[[STRUCT_S]], %[[STRUCT_S]]* %[[A]], i32 0, i32 0
12 // CHECK: store i8* %[[A_0]], i8** %[[X]], align 4
13 // CHECK: %[[V0:.*]] = bitcast %[[STRUCT_S]]* %[[A]] to i8**
14 // CHECK: call void @__destructor_4_s0(i8** %[[V0]]) #2
15
16 void test0(S a) {
17 }