mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[test] Update ParseableInterface to ModuleInterface
Also remove uses of -emit-parseable-module-interface from tests
This commit is contained in:
12
test/ModuleInterface/dataflow-errors.swift
Normal file
12
test/ModuleInterface/dataflow-errors.swift
Normal file
@@ -0,0 +1,12 @@
|
||||
// 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'
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user