mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
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.
11 lines
291 B
Swift
11 lines
291 B
Swift
// 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)
|
|
}
|