mirror of
https://github.com/apple/swift.git
synced 2026-10-04 11:58:22 +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.
13 lines
351 B
Swift
13 lines
351 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 generic definition}}
|
|
@DebugDescription
|
|
struct MyGeneric<T> {
|
|
var debugDescription: String {
|
|
"zero zero zero"
|
|
}
|
|
}
|