- Notifications
You must be signed in to change notification settings - Fork 10.5k
/
Copy pathbuild-alternative-interface-explicit.swift
14 lines (12 loc) · 1.01 KB
/
build-alternative-interface-explicit.swift
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// RUN: %empty-directory(%t)
// RUN: %empty-directory(%t/sources)
// RUN: %empty-directory(%t/inputs)
// RUN: %empty-directory(%t/alternative-inputs)
// RUN: %empty-directory(%t/module-cache)
// RUN: %empty-directory(%t/outputs)
// RUN: echo "public func foo() {}" > %t/sources/Foo.swift
// RUN: %target-swift-frontend-typecheck -emit-module-interface-path %t/inputs/Foo.swiftinterface %t/sources/Foo.swift -module-name Foo -disable-implicit-concurrency-module-import -enable-library-evolution -module-cache-path %t/module-cache -I %t/inputs -swift-version 5
// RUN: cp %t/inputs/Foo.swiftinterface %t/alternative-inputs/Foo.swiftinterface
// RUN: echo "mess_mess_mess" >> %t/inputs/Foo.swiftinterface
// RUN: not %target-swift-frontend -compile-module-from-interface -module-name Foo %t/inputs/Foo.swiftinterface -o %t/outputs/Foo.swiftmodule
// RUN: %target-swift-frontend -compile-module-from-interface -module-name Foo %t/inputs/Foo.swiftinterface -o %t/outputs/Foo.swiftmodule -backup-module-interface-path %t/alternative-inputs