forked from swiftlang/swift
- Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathno-inputs.swift
9 lines (8 loc) · 569 Bytes
/
no-inputs.swift
1
2
3
4
5
6
7
8
9
// RUN: not %swift 2>&1 | %FileCheck %s -check-prefix=CHECK1
// RUN: not %swift %s 2>&1 | %FileCheck %s -check-prefix=CHECK1
// RUN: not %swift -typecheck 2>&1 | %FileCheck %s -check-prefix=CHECK2
// RUN: not %swift -emit-sil 2>&1 | %FileCheck %s -check-prefix=CHECK2
// RUN: not %swift -emit-sil -parse-as-library 2>&1 | %FileCheck %s -check-prefix=CHECK2
// RUN: not %swift -emit-object 2>&1 | %FileCheck %s -check-prefix=CHECK2
// CHECK1: <unknown>:0: error: no frontend action was selected
// CHECK2: <unknown>:0: error: this mode requires at least one input file