Files
swift-mirror/test/Serialization/Inputs/witnesstable-function-deserialization-input.swift
Joe Groff fbd2e4d872 Rename @asmname to @_silgen_name.
This reflects the fact that the attribute's only for compiler-internal use, and isn't really equivalent to C's asm attribute, since it doesn't change the calling convention to be C-compatible.
2015-11-17 14:13:48 -08:00

42 lines
482 B
Swift

@_silgen_name("evil") public func _evil()
public 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
}
public protocol Z {
func f() -> Z
}
public struct X : Z {
public func f() -> Z {
return id(self)
}
public init() {}
}
public func makeZDoSomething(z : Z) -> Z {
return z.f()
}