@@ -128,6 +128,19 @@ TEST(TestSwiftDemangleAsyncNames, BasicAsync) {
128
128
// }(10)
129
129
// print(await explicit_inside_implicit_closure)
130
130
// }
131
+ // func sayHello2() async {
132
+ // {_ in
133
+ // }(10)
134
+ // async let another_explicit_inside_implicit_closure =
135
+ // { _ in
136
+ // print("hello")
137
+ // await work()
138
+ // print("hello")
139
+ // return 42
140
+ // }(10)
141
+ // print(await another_explicit_inside_implicit_closure)
142
+ // }
143
+
131
144
TEST (TestSwiftDemangleAsyncNames, ClosureAsync) {
132
145
// These are all async closures
133
146
SmallVector<StringRef> nested1_funclets = {
@@ -174,6 +187,12 @@ TEST(TestSwiftDemangleAsyncNames, ClosureAsync) {
174
187
" $s1a8sayHelloyyYaFSiyYaYbcfu0_S2iYaXEfU0_TQ1_" ,
175
188
" $s1a8sayHelloyyYaFSiyYaYbcfu0_S2iYaXEfU0_TY2_" ,
176
189
};
190
+ SmallVector<StringRef> another_explicit_closure_inside_implicit_closure = {
191
+ " $s1a9sayHello2yyYaFSiyYaYbcfu_S2iYaXEfU0_" ,
192
+ " $s1a9sayHello2yyYaFSiyYaYbcfu_S2iYaXEfU0_TY0_" ,
193
+ " $s1a9sayHello2yyYaFSiyYaYbcfu_S2iYaXEfU0_TQ1_" ,
194
+ " $s1a9sayHello2yyYaFSiyYaYbcfu_S2iYaXEfU0_TY2_" ,
195
+ };
177
196
178
197
SmallVector<ArrayRef<StringRef>, 0 > funclet_groups = {
179
198
nested1_funclets,
@@ -183,6 +202,7 @@ TEST(TestSwiftDemangleAsyncNames, ClosureAsync) {
183
202
implicit_closure_inside_function,
184
203
implicit_closure_inside_explicit_closure,
185
204
explicit_closure_inside_implicit_closure,
205
+ another_explicit_closure_inside_implicit_closure,
186
206
};
187
207
188
208
for (ArrayRef<StringRef> funclet_group : funclet_groups)
0 commit comments