mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Commit to a command line option spelling so that build systems can start testing it. I deliberately picked one of the longer names we were considering because we can always decide to add a shorter alias, but can't decide a shorter name was too generic. Like the other supplementary output flags, -emit-parseable-module-interface-path will emit a .swiftinterface file to a particular path, while -emit-parseable-module-interface will put it next to the main output (the one specified with -o). rdar://problem/43776945
12 lines
423 B
Swift
12 lines
423 B
Swift
// RUN: %target-swift-frontend -typecheck -emit-parseable-module-interface-path - -parse-stdlib %s | %FileCheck %s
|
|
// RUN: %target-swift-frontend -emit-parseable-module-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)
|
|
}
|