[Frontend] Generate an interface has for emit-module-separately jobs

This commit is contained in:
Alexis Laferrière
2021-08-18 13:57:11 -07:00
parent c0350229f7
commit fdc748591a
2 changed files with 10 additions and 4 deletions

View File

@@ -4,6 +4,11 @@
// 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
/// We should generate an interface hash for emit-module-separately jobs even
/// with no primaries.
// RUN: %target-swift-frontend -dump-interface-hash %t/b.swift -experimental-skip-non-inlinable-function-bodies-without-types 2> %t/b-emit-module.hash
// RUN: cmp %t/b.hash %t/b-emit-module.hash
// BEGIN a.swift
func f() {}