Files
swift-mirror/validation-test/compiler_crashers_fixed/2ae771dc466f1acc.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

16 lines
539 B
Swift

// {"kind":"typecheck","original":"f0cca09d","signature":"swift::ASTWalker::PostWalkResult<swift::ArrayToPointerExpr*> (anonymous namespace)::Verifier::dispatchVisitPost<swift::ArrayToPointerExpr*>(swift::ArrayToPointerExpr*)"}
// RUN: %target-typecheck-verify-swift
struct a {
var b: String
}
func c<d>(e: PartialKeyPath<d>, _: UnsafePointer<d> ...) {
func f(i: UnsafePointer<Int64>) {
i.withMemoryRebound(to: a.self, capacity: 2) { g in
for h in 0 ..< 2 {
var elt = g[h]
c(e: \.b, &elt)
}
}
}
}