Files
swift-mirror/test/Misc/fatal_error.swift
David Farler b7d17b25ba Rename -parse flag to -typecheck
A parse-only option is needed for parse performance tracking and the
current option also includes semantic analysis.
2016-11-28 10:50:55 -08:00

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