mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
22 lines
856 B
Swift
22 lines
856 B
Swift
// RUN: %empty-directory(%t)
|
|
|
|
// >> first try when no library evolution is specified
|
|
// RUN: %target-swift-frontend -DSYNTHESIZE_ACCESSORS -emit-module -o %t/Hello.swiftmodule %S/Inputs/moveonly_api.swift
|
|
// RUN: %target-swift-frontend -emit-sil -sil-verify-all -I %t %s > /dev/null
|
|
|
|
// >> now again with library evolution; we expect the same result.
|
|
// RUN: %target-swift-frontend -DSYNTHESIZE_ACCESSORS -enable-library-evolution -emit-module -o %t/Hello.swiftmodule %S/Inputs/moveonly_api.swift
|
|
// RUN: %target-swift-frontend -emit-sil -sil-verify-all -I %t %s > /dev/null
|
|
|
|
// FIXME: ideally this would also try executing the program rather than just generating SIL
|
|
|
|
// FIXME: make this test work when we're not synthesizing the accessors
|
|
|
|
import Hello
|
|
|
|
func simpleTest() {
|
|
let handle = FileHandle()
|
|
let msg = handle.file.fd.message()
|
|
print(msg)
|
|
}
|