Files
swift-mirror/test/InterfaceHash/edited_function_body.swift
Artem Chikin 71970fcf1f Fix and re-enable disabled 'InterfaceHash' tests
- Force loading of module dependencies from interface
- Set a unique module cache path for these tests
2024-03-18 11:39:51 -07:00

17 lines
500 B
Swift

// RUN: %empty-directory(%t)
// RUN: %empty-directory(%t/ModuleCache)
// RUN: %{python} %utils/split_file.py -o %t %s
// RUN: %target-swift-frontend -dump-interface-hash -primary-file %t/a.swift -module-cache-path %t/ModuleCache 2> %t/a.hash
// RUN: %target-swift-frontend -dump-interface-hash -primary-file %t/b.swift -module-cache-path %t/ModuleCache 2> %t/b.hash
// RUN: cmp %t/a.hash %t/b.hash
// BEGIN a.swift
func f() -> Int {
return 0
}
// BEGIN b.swift
func f() -> Int {
return 1
}