Lines Matching full:void
4 // CHECK: define void @_ZN5test04testEi(
5 // CHECK: define internal void @__test_block_invoke_{{.*}}(
6 // CHECK: define internal void @__block_global_{{.*}}(
7 void test(int x) {
8 ^{ ^{ (void) x; }; };
12 extern void (^out)();
16 // CHECK: define void @_ZN5test15test1Ev()
17 // CHECK: store void ()* bitcast ({{.*}} @__block_literal_global{{.*}} to void ()*), void ()** @out
18 void test1() {
20 out = ^{ (void) NumHorsemen; };
24 // CHECK: define void @_ZN5test15test2Ev()
25 // CHECK: store void ()* bitcast ({{.*}} @__block_literal_global{{.*}} to void ()*), void ()** @out
27 void test2() {
29 out = ^{ (void) target; };
33 // CHECK: define void @_ZN5test15test3Ev()
35 // CHECK: [[T0:%.*]] = bitcast [[BLOCK_T]]* [[BLOCK]] to void ()*
36 // CHECK: store void ()* [[T0]], void ()** @out
38 void test3() {
40 out = ^{ (void) obj; };
44 // CHECK: define void @_ZN5test15test4Ev()
47 // CHECK: [[T0:%.*]] = bitcast [[BLOCK_T]]* [[BLOCK]] to void ()*
48 // CHECK: store void ()* [[T0]], void ()** @out
50 void test4() {
52 out = ^{ (void) obj; };
72 // CHECK: define void @_ZN5test24testEv()
73 void test() {
78 // CHECK: define internal void @__Block_byref_object_copy
79 // CHECK: call void @_ZN5test21AC1ERKS0_(
81 // CHECK: define internal void @__Block_byref_object_dispose
82 // CHECK: call void @_ZN5test21AD1Ev(
84 // CHECK: define internal void @__Block_byref_object_copy
85 // CHECK: call void @_ZN5test21BC1ERKS0_(
87 // CHECK: define internal void @__Block_byref_object_dispose
88 // CHECK: call void @_ZN5test21BD1Ev(
102 void test(B b) {
103 extern void consume(void(^)());
104 consume(^{ (void) b; });
115 void foo(A a);
117 void test() {
118 extern void consume(void(^)());
121 // CHECK: define void @_ZN5test44testEv()
122 // CHECK: define internal void @__test_block_invoke
125 // CHECK-NEXT: call void @_ZN5test41AC1Ev([[A]]* [[TMP]])
126 // CHECK-NEXT: call void @_ZN5test43fooENS_1AE([[A]]* [[TMP]])
127 // CHECK-NEXT: call void @_ZN5test41AD1Ev([[A]]* [[TMP]])
128 // CHECK-NEXT: ret void
137 void foo() const;
140 void doWithBlock(void(^)());
142 void test(bool cond) {
144 void (^b)() = (cond ? ^{ x.foo(); } : (void(^)()) 0);
148 // CHECK: define void @_ZN5test54testEb(
151 // CHECK-NEXT: [[B:%.*]] = alloca void ()*, align 8
156 // CHECK-NEXT: call void @_ZN5test51AC1Ev([[A]]* [[X]])
165 // CHECK-NEXT: call void @_ZN5test51AC1ERKS0_([[A]]* [[CAPTURE]], [[A]]* [[X]])
167 // CHECK-NEXT: bitcast [[BLOCK_T]]* [[BLOCK]] to void ()*
173 // CHECK-NEXT: call void @_ZN5test511doWithBlockEU13block_pointerFvvE(
176 // CHECK: call void @_ZN5test51AD1Ev([[A]]* [[CLEANUP_ADDR]])
178 // CHECK: call void @_ZN5test51AD1Ev([[A]]* [[X]])
179 // CHECK-NEXT: ret void
188 void foo(const A &, void (^)());
189 void bar();
191 void test() {
198 // CHECK: define void @_ZN5test64testEv()
200 // CHECK-NEXT: call void @_ZN5test61AC1Ev([[A]]* [[TEMP]])
201 // CHECK-NEXT: call void @_ZN5test63fooERKNS_1AEU13block_pointerFvvE(
202 // CHECK-NEXT: call void @_ZN5test61AD1Ev([[A]]* [[TEMP]])
203 // CHECK-NEXT: call void @_ZN5test63barEv()
204 // CHECK-NEXT: ret void