Files
swift-mirror/validation-test/compiler_crashers/AbstractStorageDecl-getAccessStrategy-cb8022.swift
Hamish Knight 4e811c3a88 [test] Merge crasher directories
There is no longer much of a good reason to keep these separate,
merge them.
2025-10-18 12:51:30 +01:00

4 lines
583 B
Swift

// {"kind":"typecheck","signature":"swift::AbstractStorageDecl::getAccessStrategy(swift::AccessSemantics, swift::AccessKind, swift::ModuleDecl*, swift::ResilienceExpansion, std::__1::optional<std::__1::pair<swift::SourceRange, swift::DeclContext const*>>, bool) const","signatureAssert":"Assertion failed: (isa<VarDecl>(storage) && cast<VarDecl>(storage)->isLet() && \"mutation of a immutable variable that isn't a let\"), function getDirectReadWriteAccessStrategy"}
// RUN: not --crash %target-swift-frontend -typecheck %s
func a(@_nonEphemeral UnsafeRawPointer) var arr { b a(&arr