Files
swift-mirror/test/Serialization/Inputs/witnesstable-function-deserialization-input.swift
Michael Gottesman b90979be67 [deserialization] Only deserialize witness table functions as declarations.
This is analogous to the issue in r14581.

Swift SVN r14584
2014-03-03 06:46:27 +00:00

41 lines
415 B
Swift

@asmname="evil" func _evil()
func id<U>(u : U) -> U {
_evil()
_evil()
_evil()
_evil()
_evil()
_evil()
_evil()
_evil()
_evil()
_evil()
_evil()
_evil()
_evil()
_evil()
_evil()
_evil()
_evil()
_evil()
_evil()
_evil()
return u
}
protocol Z {
func f() -> Z
}
struct X : Z {
func f() -> Z {
return id(self)
}
}
func makeZDoSomething(z : Z) -> Z {
return z.f()
}