mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
The original wording is not helpful to a user if they don't know what a swiftsourceinfo actually is. Change the wording to provide some more context, ie. that it is an unstable format and should not be distributed. Resolves rdar://80785874
18 lines
681 B
Swift
18 lines
681 B
Swift
// RUN: %empty-directory(%t)
|
|
// RUN: %target-swift-frontend -emit-module -o %t %S/../Inputs/empty.swift
|
|
// RUN: %target-swift-frontend -typecheck -I %t %s
|
|
|
|
// RUN: touch %t/empty.swiftsourceinfo
|
|
// RUN: %target-swift-frontend -typecheck -I %t %s -verify
|
|
|
|
// RUN: echo -n 'a' > %t/empty.swiftsourceinfo
|
|
// RUN: %target-swift-frontend -typecheck -I %t %s -verify
|
|
|
|
// RUN: echo -n 'abcd' > %t/empty.swiftsourceinfo
|
|
// RUN: %target-swift-frontend -typecheck -I %t %s -verify
|
|
|
|
// RUN: echo -n 'abcde' > %t/empty.swiftsourceinfo
|
|
// RUN: %target-swift-frontend -typecheck -I %t %s -verify
|
|
|
|
import empty // expected-warning{{is either malformed or generated by a different Swift version}}
|