Files
swift-mirror/test/InterfaceHash/added_method.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

24 lines
430 B
Swift

// RUN: %empty-directory(%t)
// RUN: %utils/split_file.py -o %t %s
// RUN: %target-swift-frontend -dump-interface-hash %t/a.swift 2> %t/a.hash
// RUN: %target-swift-frontend -dump-interface-hash %t/b.swift 2> %t/b.hash
// RUN: not cmp %t/a.hash %t/b.hash
// BEGIN a.swift
class C {
func f2() -> Int {
return 0
}
}
// BEGIN b.swift
class C {
func f2() -> Int {
return 0
}
func f3() -> Int {
return 1
}
}