Skip to content

Commit 955a7e9

Browse files
committed
Verify the old ABI
1 parent fce135d commit 955a7e9

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
//===----------------------------------------------------------------------===//
2+
//
3+
// This source file is part of the Swift.org open source project
4+
//
5+
// Copyright (c) 2025 Apple Inc. and the Swift project authors
6+
// Licensed under Apache License v2.0 with Runtime Library Exception
7+
//
8+
// See https://swift.org/LICENSE.txt for license information
9+
// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
10+
//
11+
//===----------------------------------------------------------------------===//
12+
13+
#if FOUNDATION_FRAMEWORK
14+
@_spi(FoundationLegacyABI) @testable import Foundation
15+
import Testing
16+
17+
@Test func validateLegacyABI() {
18+
var data = Data()
19+
20+
data._legacy_withUnsafeBytes { _ in }
21+
data._legacy_withUnsafeMutableBytes { _ in }
22+
}
23+
24+
#endif // FOUNDATION_FRAMEWORK

0 commit comments

Comments
 (0)