Skip to content

Commit 0f69481

Browse files
committed
test: address Windows test regression
The change to relax forced autolinking symbol emission restrictions caused a regression due to over-fitting of the output where the symbol's comdat annotation was not accounted for. Adjust the test accordingly.
1 parent 9d1470d commit 0f69481

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/Serialization/autolinking.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,10 @@ import someModule
4040
// NO-FORCE-LOAD-NOT: FORCE_LOAD
4141
// NO-FORCE-LOAD-NOT -lmodule
4242
// NO-FORCE-LOAD-NOT -lmagic
43-
// FORCE-LOAD: define{{( dllexport)?}} void @"_swift_FORCE_LOAD_$_module"() {
43+
// FORCE-LOAD: define{{( dllexport)?}} void @"_swift_FORCE_LOAD_$_module"() {{(comdat )?}}{
4444
// FORCE-LOAD: ret void
4545
// FORCE-LOAD: }
46-
// FORCE-LOAD-HEX: define{{( dllexport)?}} void @"_swift_FORCE_LOAD_$306d6f64756c65"() {
46+
// FORCE-LOAD-HEX: define{{( dllexport)?}} void @"_swift_FORCE_LOAD_$306d6f64756c65"() {{(comdat )?}}{
4747
// FORCE-LOAD-HEX: ret void
4848
// FORCE-LOAD-HEX: }
4949

0 commit comments

Comments
 (0)