Skip to content

Commit b7e8f00

Browse files
committed
Test: Adjust bridged known types tests for the macOS 13 SDK.
In the macOS 13 SDK the definition of `CGFloat` moved from the CoreGraphics Swift overlay to the CoreFoundation overlay. This test should therefore no longer check that a `@import CoreGraphics` directive is emitted since this check fails for compiler developers using newer SDKs.
1 parent ca2601d commit b7e8f00

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

test/PrintAsObjC/bridged-known-types-cf-cgfloat.swift

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
// their bridged type.
44
//
55
// This is particularly important for `CGFloat`, which has a native Swift decl
6-
// in the CoreGraphics overlay that shadows the imported Clang decl, so relying
7-
// solely on whether or not the decl has a Clang node is not sufficient.
6+
// in the CoreFoundation overlay that shadows the imported Clang decl, so
7+
// relying solely on whether or not the decl has a Clang node is not sufficient.
88

99
// RUN: %empty-directory(%t)
1010
// RUN: %target-swift-frontend -typecheck %s -parse-as-library -emit-objc-header-path %t/swift.h
@@ -18,8 +18,6 @@
1818
import CoreGraphics
1919
import Foundation
2020

21-
// CHECK: @import CoreGraphics;
22-
2321
// CHECK-NOT: @class NSNumber;
2422

2523
// CHECK-LABEL: @interface Test : NSObject{{$}}

test/PrintAsObjC/bridged-known-types.swift

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
// their bridged type.
44
//
55
// This is particularly important for `CGFloat`, which has a native Swift decl
6-
// in the CoreGraphics overlay that shadows the imported Clang decl, so relying
7-
// solely on whether or not the decl has a Clang node is not sufficient.
6+
// in the CoreFoundation overlay that shadows the imported Clang decl, so
7+
// relying solely on whether or not the decl has a Clang node is not sufficient.
88

99
// RUN: %empty-directory(%t)
1010
// RUN: %target-swift-frontend -typecheck %s -parse-as-library -emit-objc-header-path %t/swift.h
@@ -18,8 +18,6 @@
1818
import CoreGraphics
1919
import Foundation
2020

21-
// CHECK: @import CoreGraphics;
22-
2321
// CHECK-NOT: @class NSNumber;
2422

2523
// CHECK-LABEL: @interface Test : NSObject{{$}}

0 commit comments

Comments
 (0)