mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Most tests were using %swift or similar substitutions, which did not include the target triple and SDK. The driver was defaulting to the host OS. Thus, we could not run the tests when the standard library was not built for OS X. Swift SVN r24504
23 lines
472 B
Swift
23 lines
472 B
Swift
// RUN: %target-swift-frontend -primary-file %s %S/../../Inputs/forward_extension_reference.swift -emit-ir -g -module-name fref
|
|
// RUN: %target-swift-frontend %S/../../Inputs/forward_extension_reference.swift -primary-file %s -emit-ir -g -module-name fref
|
|
|
|
struct Foo<T> {
|
|
func foo(t: T) -> T {
|
|
return t
|
|
}
|
|
|
|
var _countAndFlags: UInt = 0
|
|
|
|
func gar() -> Int {
|
|
return count
|
|
}
|
|
}
|
|
|
|
func goo<T>(f: Foo<T>) {
|
|
var x = f.count
|
|
}
|
|
|
|
protocol Bar {
|
|
var count: Int {get set}
|
|
}
|