Files
Allan Shortlidge 92372d8c8a test: Remove -disable-availability-checking where it has no effect.
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.
2026-09-10 15:46:52 -07:00

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