Files
swift-mirror/test/Parse/invalid-utf8.swift
2014-01-17 01:08:32 +00:00

7 lines
278 B
Swift
Raw Blame History

// RUN: %swift %s -parse -verify
var <EFBFBD>x = "" // expected-error{{invalid UTF-8 found in source file}} expected-error{{expected pattern}}
// Make sure we don't stop processing the whole file.
type func foo() {} // expected-error{{type functions may only be declared on a type}}