mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[ModuleInterface] Don't include 'import Builtin' for the stdlib (#19319)
The special 'Builtin' module is implicitly imported via -parse-stdlib, and can't be found via normal import resolution, so we shouldn't print it in a textual interface.
This commit is contained in:
10
test/ModuleInterface/stdlib.swift
Normal file
10
test/ModuleInterface/stdlib.swift
Normal file
@@ -0,0 +1,10 @@
|
||||
// RUN: %target-swift-frontend -emit-interface-path - -emit-module -o /dev/null -parse-stdlib %s | %FileCheck %s
|
||||
|
||||
// CHECK-NOT: import Builtin
|
||||
|
||||
// CHECK: func test() {
|
||||
// CHECK-NEXT: Builtin.sizeof
|
||||
// CHECK-NEXT: {{^}$}}
|
||||
@inlinable public func test() {
|
||||
Builtin.sizeof(Builtin.Int8.self)
|
||||
}
|
||||
Reference in New Issue
Block a user