Files
swift-mirror/test/Parse/toplevel_library_invalid.swift
Argyrios Kyrtzidis 3a1d504cff [Parser] Fix crash-on-invalid, with top-level statements and -parse-as-library.
Part of rdar://15484631

Swift SVN r10558
2013-11-19 17:55:04 +00:00

6 lines
216 B
Swift

// RUN: %swift -parse -verify -parse-as-library %s
println("a"); // expected-error {{expressions are not allowed at the top level}} \
// expected-error {{';' statements are not allowed}}
println("a");