mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
A parse-only option is needed for parse performance tracking and the current option also includes semantic analysis.
7 lines
427 B
Swift
7 lines
427 B
Swift
// RUN: %target-swift-frontend -typecheck %S/Inputs/main.swift %S/Inputs/lib.swift %s -module-name ThisModule
|
|
// RUN: %target-swift-frontend -typecheck %s %S/Inputs/lib.swift %S/Inputs/main.swift -module-name ThisModule
|
|
|
|
// RUN: not %target-swift-frontend -typecheck -parse-as-library %S/Inputs/main.swift %S/Inputs/lib.swift %s 2>&1 | %FileCheck %s
|
|
// CHECK: main.swift:
|
|
// CHECK: expressions are not allowed at the top level
|