@@ -128,6 +128,19 @@ TEST(TestSwiftDemangleAsyncNames, BasicAsync) {
128128// }(10)
129129// print(await explicit_inside_implicit_closure)
130130// }
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+
131144TEST (TestSwiftDemangleAsyncNames, ClosureAsync) {
132145 // These are all async closures
133146 SmallVector<StringRef> nested1_funclets = {
@@ -174,6 +187,12 @@ TEST(TestSwiftDemangleAsyncNames, ClosureAsync) {
174187 " $s1a8sayHelloyyYaFSiyYaYbcfu0_S2iYaXEfU0_TQ1_" ,
175188 " $s1a8sayHelloyyYaFSiyYaYbcfu0_S2iYaXEfU0_TY2_" ,
176189 };
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+ };
177196
178197 SmallVector<ArrayRef<StringRef>, 0 > funclet_groups = {
179198 nested1_funclets,
@@ -183,6 +202,7 @@ TEST(TestSwiftDemangleAsyncNames, ClosureAsync) {
183202 implicit_closure_inside_function,
184203 implicit_closure_inside_explicit_closure,
185204 explicit_closure_inside_implicit_closure,
205+ another_explicit_closure_inside_implicit_closure,
186206 };
187207
188208 for (ArrayRef<StringRef> funclet_group : funclet_groups)
0 commit comments