Files
swift-mirror/test/Parse/switch_incomplete.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

7 lines
283 B
Swift

// RUN: %target-typecheck-verify-swift
// <rdar://problem/15971438> Incomplete switch was parsing to an AST that
// triggered an assertion failure.
switch 1 { // expected-note{{to match this opening '{'}}
case 1: // expected-error@+1{{expected '}' at end of 'switch' statement}}