Files
swift-mirror/test/SIL/Parser/witness_bug.sil
Joe Groff c0a2994564 AST: Start printing function types with @convention instead of old attributes.
And update tests to match.

Swift SVN r27262
2015-04-13 22:51:34 +00:00

16 lines
622 B
Plaintext

// RUN: %target-sil-opt %s -verify
import Builtin
import Swift
sil @_TF7arrtest6arreltFRVS_1ST_ : $@convention(thin) () -> () {
bb0:
%15 = witness_method $Int, #Comparable."<="!1 : $@convention(witness_method) <τ_0_0 where τ_0_0 : Comparable> (@in τ_0_0, @in τ_0_0, @thick τ_0_0.Type) -> Bool // user: %20
%91 = tuple () // user: %93
return %91 : $() // id: %93
}
sil_witness_table public_external Int: Comparable module Swift {
base_protocol _Comparable: Int: _Comparable module Swift
base_protocol Equatable: Int: Equatable module Swift
}