@@ -119,6 +119,14 @@ TEST(TestSwiftDemangleAsyncNames, BasicAsync) {
119
119
// async let x = await async_int();
120
120
// print(await x);
121
121
// await closure(10)
122
+ // async let explicit_inside_implicit_closure =
123
+ // { _ in
124
+ // print("hello")
125
+ // await work()
126
+ // print("hello")
127
+ // return 42
128
+ // }(10)
129
+ // print(await explicit_inside_implicit_closure)
122
130
// }
123
131
TEST (TestSwiftDemangleAsyncNames, ClosureAsync) {
124
132
// These are all async closures
@@ -160,6 +168,12 @@ TEST(TestSwiftDemangleAsyncNames, ClosureAsync) {
160
168
" $s1a8sayHelloyyYaFyypYacfU_SiyYaYbcfu_TQ0_" ,
161
169
" $s1a8sayHelloyyYaFyypYacfU_SiyYaYbcfu_TY1_" ,
162
170
};
171
+ SmallVector<StringRef> explicit_closure_inside_implicit_closure = {
172
+ " $s1a8sayHelloyyYaFSiyYaYbcfu0_S2iYaXEfU0_" ,
173
+ " $s1a8sayHelloyyYaFSiyYaYbcfu0_S2iYaXEfU0_TY0_" ,
174
+ " $s1a8sayHelloyyYaFSiyYaYbcfu0_S2iYaXEfU0_TQ1_" ,
175
+ " $s1a8sayHelloyyYaFSiyYaYbcfu0_S2iYaXEfU0_TY2_" ,
176
+ };
163
177
164
178
SmallVector<ArrayRef<StringRef>, 0 > funclet_groups = {
165
179
nested1_funclets,
@@ -168,6 +182,7 @@ TEST(TestSwiftDemangleAsyncNames, ClosureAsync) {
168
182
nested2_funclets_top_not_async,
169
183
implicit_closure_inside_function,
170
184
implicit_closure_inside_explicit_closure,
185
+ explicit_closure_inside_implicit_closure,
171
186
};
172
187
173
188
for (ArrayRef<StringRef> funclet_group : funclet_groups)
0 commit comments