Files
swift-mirror/test/decl/class/inheritance_protocol_multi_module.swift
Dmitri Gribenko 984210aa53 tests: replace '// RUN: rm -rf' '// RUN: mkdir' pairs with '%empty-directory(...)'
These changes were made using a script.
2017-06-04 11:08:39 -07:00

14 lines
406 B
Swift

// RUN: %empty-directory(%t)
// RUN: %target-swift-frontend -emit-module-path %t/Mod.swiftmodule -module-name Mod %s
// RUN: %target-swift-frontend -typecheck -verify -I %t %S/Inputs/inheritance_protocol_multi_module_2.swift
/* module Mod */
public protocol MyProtocol {}
open class ClassLevel1: MyProtocol {
public init() {}
}
open class ClassLevel2: ClassLevel1 {
public override init () {}
}