@@ -443,16 +443,19 @@ TEST(MetadataTest, getExistentialMetadata) {
443
443
});
444
444
445
445
// protocol compositions are order-invariant
446
- const ProtocolDescriptor *protoList4[] = {
447
- &ProtocolA,
448
- &ProtocolB
449
- };
450
- const ProtocolDescriptor *protoList5[] = {
451
- &ProtocolB,
452
- &ProtocolA
453
- };
454
446
RaceTest_ExpectEqual<const ExistentialTypeMetadata *>(
455
447
[&]() -> const ExistentialTypeMetadata * {
448
+
449
+ const ProtocolDescriptor *protoList4[] = {
450
+ &ProtocolA,
451
+ &ProtocolB
452
+ };
453
+
454
+ const ProtocolDescriptor *protoList5[] = {
455
+ &ProtocolB,
456
+ &ProtocolA
457
+ };
458
+
456
459
auto ab = swift_getExistentialTypeMetadata (ProtocolClassConstraint::Any,
457
460
/* superclass=*/ nullptr ,
458
461
2 , protoList4);
@@ -514,13 +517,14 @@ TEST(MetadataTest, getExistentialMetadata) {
514
517
return noWitnessTable;
515
518
});
516
519
517
- const ProtocolDescriptor *protoList8[] = {
518
- &ProtocolNoWitnessTable,
519
- &ProtocolA,
520
- &ProtocolB
521
- };
522
520
RaceTest_ExpectEqual<const ExistentialTypeMetadata *>(
523
521
[&]() -> const ExistentialTypeMetadata * {
522
+ const ProtocolDescriptor *protoList8[] = {
523
+ &ProtocolNoWitnessTable,
524
+ &ProtocolA,
525
+ &ProtocolB
526
+ };
527
+
524
528
auto mixedWitnessTable
525
529
= swift_getExistentialTypeMetadata (ProtocolClassConstraint::Class,
526
530
/* superclass=*/ nullptr ,
@@ -560,12 +564,13 @@ TEST(MetadataTest, getExistentialMetadata) {
560
564
return special;
561
565
});
562
566
563
- const ProtocolDescriptor *protoList10[] = {
564
- &ProtocolError,
565
- &ProtocolA
566
- };
567
567
RaceTest_ExpectEqual<const ExistentialTypeMetadata *>(
568
568
[&]() -> const ExistentialTypeMetadata * {
569
+ const ProtocolDescriptor *protoList10[] = {
570
+ &ProtocolError,
571
+ &ProtocolA
572
+ };
573
+
569
574
auto special
570
575
= swift_getExistentialTypeMetadata (ProtocolClassConstraint::Any,
571
576
/* superclass=*/ nullptr ,
0 commit comments