mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
19 lines
406 B
Swift
19 lines
406 B
Swift
// RUN: %swift -target x86_64-apple-macosx10.9 %s -emit-ir -g -o - | FileCheck %s
|
|
// Don't crash when emitting debug info for anonymous variables.
|
|
// CHECK: variable{{.*}}[_]
|
|
protocol F_ {
|
|
func successor() -> Self
|
|
}
|
|
|
|
protocol F : F_ {
|
|
func ~> (Self, (_Distance, (Self))) -> Int
|
|
}
|
|
|
|
struct _Distance {}
|
|
|
|
func ~> <I: F_>(self_:I, (_Distance, (I))) -> Int {
|
|
self_.successor()
|
|
println("F")
|
|
return 0
|
|
}
|