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.
14 lines
521 B
Swift
14 lines
521 B
Swift
// RUN: not %target-swift-frontend -typecheck %s -sdk "" 2>&1 | %FileCheck -check-prefix=CHECK -check-prefix=NO-MODULE %s
|
|
// RUN: not %target-swift-frontend -typecheck %s -resource-dir / 2>&1 | %FileCheck -check-prefix=CHECK -check-prefix=NO-STDLIB %s
|
|
|
|
// NO-MODULE: error: no such module 'NonExistent'
|
|
|
|
// NO-STDLIB: error: unable to load standard library for target '{{.+-.+}}'
|
|
|
|
// CHECK-NOT: error
|
|
// CHECK-NOT: warning
|
|
import NonExistent
|
|
|
|
// No subsequent diagnostics after fatal errors.
|
|
var x: NonExistent.Something
|