mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
16 lines
437 B
Swift
16 lines
437 B
Swift
// RUN: %swift -interpret -I %S/Inputs -enable-source-import %s | FileCheck %s
|
|
// REQUIRES: swift_interpreter
|
|
// FIXME: This test uses IRGen with -enable-source-import; it may fail with -g.
|
|
|
|
// Make sure we actually IRGen this.
|
|
import implementation
|
|
|
|
print("Hello")
|
|
|
|
// CHECK: {{^}}1 2 3 4 5{{$}}
|
|
implementation.countToFive()
|
|
|
|
// Run it again to make sure we don't IRGen again.
|
|
// CHECK: {{^}}1 2 3 4 5{{$}}
|
|
implementation.countToFive()
|