Files
swift-mirror/test/Serialization/generic_extension.swift
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

14 lines
496 B
Swift

// RUN: rm -rf %t
// RUN: mkdir %t
// RUN: %target-swift-frontend -emit-module -o %t %S/Inputs/generic_extension_1.swift
// RUN: %target-swift-frontend -emit-sil -I %t %s | FileCheck %s
// We have to perform IRGen to actually check that the generic substitutions
// are being used.
import generic_extension_1
["a", "b", "c"].wobble()
// CHECK: sil @_TFE19generic_extension_1Sa6wobbleU__fGSaQ__FT_GSqQ__ : $@convention(method) <τ_0_0> (@out Optional<τ_0_0>, @guaranteed Array<τ_0_0>) -> ()