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