Files
swift-mirror/test/ModuleInterface/dataflow-errors.swift
Harlan Haskins d3b8ce7ae2 [test] Update ParseableInterface to ModuleInterface
Also remove uses of -emit-parseable-module-interface from tests
2019-09-13 14:55:48 -07:00

12 lines
335 B
Swift

// RUN: rm -f %t
// RUN: not %target-swift-frontend -emit-module-interface-path %t -emit-module -o /dev/null %s
// RUN: test ! -f %t
// RUN: %target-swift-frontend -emit-module-interface-path %t -typecheck %s
// RUN: test -f %t
public struct BadInit {
public var x: Int
public init() {
return // without initializing 'x'
}
}