[ModuleInterface] Version string (semi)finalization, format version checking.

This commit is contained in:
Graydon Hoare
2018-11-08 22:05:32 -08:00
parent c6ac3867cd
commit 657543119c
5 changed files with 62 additions and 10 deletions

View File

@@ -54,8 +54,8 @@
// RUN: not %target-swift-frontend -I %t -module-cache-path %t/modulecache -enable-parseable-module-interface -emit-module -o %t/TestModule.swiftmodule -module-name TestModule %s >%t/err.txt 2>&1
// RUN: %S/Inputs/check-is-old.py %t/modulecache/OtherModule-*.swiftmodule %t/modulecache/LeafModule-*.swiftmodule
// RUN: %FileCheck %s -check-prefix=CHECK-ERROR <%t/err.txt
// CHECK-ERROR: LeafModule.swiftinterface:5:8: error: no such module 'NotAModule'
// CHECK-ERROR: OtherModule.swiftinterface:3:8: error: no such module 'LeafModule'
// CHECK-ERROR: LeafModule.swiftinterface:6:8: error: no such module 'NotAModule'
// CHECK-ERROR: OtherModule.swiftinterface:4:8: error: no such module 'LeafModule'
//
//
// Next test: same as above, but with a .dia file