mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
17 lines
619 B
Swift
17 lines
619 B
Swift
// RUN: not %target-swift-frontend -typecheck -diagnostic-style llvm %s 2>&1 | %FileCheck -strict-whitespace %s
|
|
|
|
// Test the diagnostic option 'PointsToFirstBadToken'.
|
|
|
|
typealias TestDiagPointsToEndOfLine =
|
|
|
|
// CHECK: error: expected type in type alias declaration
|
|
// CHECK-NEXT: {{^}}typealias TestDiagPointsToEndOfLine ={{$}}
|
|
// CHECK-NEXT: {{^}} ^{{$}}
|
|
|
|
typealias TestDiagPointsToBadToken = =
|
|
|
|
// CHECK: error: expected type in type alias declaration
|
|
// CHECK-NEXT: {{^}}typealias TestDiagPointsToBadToken = ={{$}}
|
|
// CHECK-NEXT: {{^}} ^{{$}}
|
|
|