Files
swift-mirror/test/TBD/specialize_verify.swift
2021-02-12 10:12:01 -08:00

8 lines
231 B
Swift

// REQUIRES: VENDOR=apple
// RUN: %target-swift-frontend -emit-ir -o/dev/null -O -module-name test -validate-tbd-against-ir=missing %s
@_specialize(exported: true, where T == Float)
public func foo<T>(_ x : T) -> T {
return x
}