mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
29 lines
880 B
Swift
29 lines
880 B
Swift
// RUN: %empty-directory(%t)
|
|
|
|
// RUN: %target-build-swift \
|
|
// RUN: -emit-module-path %t \
|
|
// RUN: -enable-library-evolution \
|
|
// RUN: -module-name Swiftskell \
|
|
// RUN: -parse-as-library \
|
|
// RUN: %S/../Inputs/Swiftskell.swift -c -o %t/Swiftskell.o \
|
|
// RUN: -enable-experimental-feature NonescapableTypes \
|
|
// RUN: -enable-experimental-feature BorrowingSwitch
|
|
|
|
// RUN: %target-build-swift -o %t/a.out %s -I %t %t/Swiftskell.o
|
|
// RUN: %target-codesign %t/a.out
|
|
// RUN: %target-run %t/a.out | %FileCheck %s
|
|
|
|
// REQUIRES: executable_test
|
|
|
|
// XFAIL: *
|
|
/* FIXME: there's a cycle getting triggered somehow (rdar://124117857)
|
|
<unknown>:0: error: circular reference
|
|
<unknown>:0: note: through reference here
|
|
<unknown>:0: error: merge-module command failed with exit code 1 (use -v to see invocation)
|
|
*/
|
|
|
|
import Swiftskell
|
|
|
|
print("hello, world")
|
|
// CHECK: hello, world
|