mirror of
https://github.com/apple/swift.git
synced 2026-10-22 19:15:50 +02:00
None of these tests use an availability gated language feature or standard library API at the deployment target they compile with, so the flag suppresses no diagnostics. Remove it rather than replacing it with a deployment target. Verified by running each test with the flag removed. The one exception is attr_target_x86_64.swift, which only runs on x86_64 hosts; its arm64 twin, attr_target_arm64.swift, is verified and the two differ only in the CPU features they name.
11 lines
296 B
Swift
11 lines
296 B
Swift
// REQUIRES: swift_swift_parser
|
|
|
|
// RUN: %empty-directory(%t)
|
|
// RUN: %target-swift-frontend %s -swift-version 5 -module-name main -typecheck -verify -plugin-path %swift-plugin-dir
|
|
|
|
// expected-error @+1 {{cannot be attached to a protocol}}
|
|
@DebugDescription
|
|
protocol MyProto {
|
|
func action()
|
|
}
|