Files
swift-mirror/test/Parse/diagnostic_points_to_first_bad_token.swift
David Farler b7d17b25ba Rename -parse flag to -typecheck
A parse-only option is needed for parse performance tracking and the
current option also includes semantic analysis.
2016-11-28 10:50:55 -08:00

17 lines
594 B
Swift

// 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: {{^}} ^{{$}}