Files
swift-mirror/test/Serialization/load-invalid-sourceinfo.swift
Ben Barham 3ba8cb22f6 [Diagnostics] Reword malformed swiftsourceinfo diagnostic
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
2021-07-23 09:04:46 +10:00

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}}