blob: 475ddd9261d9750c3d311623a39ab4af1f9bca43 [file] [log] [blame]
// RUN: not %target-swift-frontend -typecheck %s 2>&1 | %FileCheck -strict-whitespace %s
// Test the diagnostic option 'PointsToFirstBadToken'.
typealias TestDiagPointsToEndOfLine =
// CHECK: error: expected type in typealias declaration
// CHECK-NEXT: {{^}}typealias TestDiagPointsToEndOfLine ={{$}}
// CHECK-NEXT: {{^}} ^{{$}}
typealias TestDiagPointsToBadToken = =
// CHECK: error: expected type in typealias declaration
// CHECK-NEXT: {{^}}typealias TestDiagPointsToBadToken = ={{$}}
// CHECK-NEXT: {{^}} ^{{$}}