mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
17 lines
653 B
Swift
17 lines
653 B
Swift
// Tests for the Swift frontends `-verify` mode.
|
|
|
|
// RUN: not %target-typecheck-verify-swift 2>&1 | %FileCheck %s
|
|
|
|
// CHECK: [[@LINE+1]]:1: error: unexpected error produced: use of unresolved
|
|
undefinedFunc()
|
|
|
|
// CHECK: [[@LINE+1]]:4: error: expected error not produced
|
|
// expected-error{{This error message never gets output}}
|
|
|
|
// CHECK: [[@LINE+1]]:20: error: expected {{{{}} in {{expected}}-{{warning}}
|
|
// expected-warning
|
|
|
|
// CHECK: [[@LINE+2]]:8: error: unexpected error produced: generic type 'Array' specialized with too many type parameters
|
|
// CHECK: note: diagnostic produced elsewhere: generic type 'Array' declared here
|
|
let x: Array<Int, Int>
|