blob: ea1adbbbed601b1be718a5e1eb84755d61fe15e7 [file] [log] [blame]
// RUN: %empty-directory(%t)
// RUN: %{python} %utils/split_file.py -o %t %s
// RUN: %target-swift-frontend -dump-interface-hash -primary-file %t/a.swift 2> %t/a.hash
// RUN: %target-swift-frontend -dump-interface-hash -primary-file %t/b.swift 2> %t/b.hash
// RUN: not cmp %t/a.hash %t/b.hash
// BEGIN a.swift
struct A {
func f2() -> Int {
return 0
}
}
enum B {
case x, y
func f2() -> Int {
return 0
}
}
// BEGIN b.swift
struct A {
func f2() -> Int {
return 0
}
private func f3() -> Int {
return 1
}
}
enum B {
case x, y
func f2() -> Int {
return 0
}
private func f3() -> Int {
return 1
}
}