blob: 3d478c1d5060e0674cf0743403fd6b8f2b8fc57f [file] [log] [blame]
// RUN: not %target-swift-frontend -parse %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: {{^}} ^{{$}}