Skip to content

Commit 9ab77ee

Browse files
committed
Use @section and @used
1 parent ace7a9f commit 9ab77ee

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Sources/Testing/ABI/EntryPoints/Library.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -184,15 +184,15 @@ private func testingLibraryDiscoverableAccessor(_ outValue: UnsafeMutableRawPoin
184184
}
185185

186186
#if os(macOS) || os(iOS) || os(watchOS) || os(tvOS) || os(visionOS)
187-
@_section("__DATA_CONST,__swift5_tests")
187+
@section("__DATA_CONST,__swift5_tests")
188188
#elseif os(Linux) || os(FreeBSD) || os(OpenBSD) || os(Android) || os(WASI)
189-
@_section("swift5_tests")
189+
@section("swift5_tests")
190190
#elseif os(Windows)
191-
@_section(".sw5test$B")
191+
@section(".sw5test$B")
192192
#else
193193
@__testing(warning: "Platform-specific implementation missing: test content section name unavailable")
194194
#endif
195-
@_used
195+
@used
196196
private let testingLibraryRecord: __TestContentRecord = (
197197
0x6D61696E, /* 'main' */
198198
0,

0 commit comments

Comments
 (0)