mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
The driver option -i now requires an input file as argument, and any options after the input file will be treated as arguments to the interpretted file. This also renames the frontend option to -interpret, since it is parsed as a flag, unlike -i. We could support -interpret in the driver if we wanted, which would allow us to use --, but wouldn't work with shebang scripts. For now, it's frontend-only. Swift SVN r19718
5 lines
202 B
Swift
5 lines
202 B
Swift
// Run test variables.swift, verifying that the combination of -interpret and -g works.
|
|
// RUN: %swift -g -interpret %S/variables.swift | FileCheck %s
|
|
// CHECK: 8, 16, 32
|
|
// REQUIRES: swift_interpreter
|