1 // RUN: %clang_cc1 %s -std=c++11 -emit-llvm -triple %itanium_abi_triple -o - -fblocks -fexceptions | FileCheck %s
20 ^{ a0
.x
= 1234; a1
.x
= 5678; };
24 // CHECK-LABEL: define internal void @__Block_byref_object_copy_
25 // CHECK: call {{.*}} @_ZN1AC1ERKS_
26 // CHECK-LABEL: define internal void @__Block_byref_object_dispose_
27 // CHECK: call {{.*}} @_ZN1AD1Ev
29 // CHECK-LABEL: define linkonce_odr hidden void @__copy_helper_block_e{{4|8}}_{{20|32}}rc{{24|40}}rc(
30 // CHECK: call void @_Block_object_assign(
31 // CHECK: invoke void @_Block_object_assign(
32 // CHECK: call void @_Block_object_dispose({{.*}}) #[[NOUNWIND_ATTR:[0-9]+]]
34 // CHECK-LABEL: define linkonce_odr hidden void @__destroy_helper_block_e{{4|8}}_{{20|32}}rd{{24|40}}rd(
35 // CHECK: invoke void @_Block_object_dispose(
36 // CHECK: call void @_Block_object_dispose(
37 // CHECK: invoke void @_Block_object_dispose(
41 ^{ b0
.x
= 1234; b1
.x
= 5678; };
45 // CHECK-LABEL: define internal void @__Block_byref_object_copy_
46 // CHECK: call {{.*}} @_ZN1BC1ERKS_
47 // CHECK-LABEL: define internal void @__Block_byref_object_dispose_
48 // CHECK: call {{.*}} @_ZN1BD1Ev
50 // CHECK-NOT: define{{.*}}@__copy_helper_block
51 // CHECK: define linkonce_odr hidden void @__destroy_helper_block_e{{4|8}}_{{20|32}}r{{24|40}}r(
53 // CHECK: attributes #[[NOUNWIND_ATTR]] = {{{.*}}nounwind{{.*}}}
55 // rdar://problem/11135650
57 struct A
{ int x
; A(); ~A(); };