mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
This includes changing the feature name so that compilers with the experimental feature don’t accidentally pick up content that only works in the final version. Resolves rdar://150065196.
18 lines
468 B
Swift
18 lines
468 B
Swift
// RUN: %target-typecheck-verify-swift
|
|
|
|
// UNSUPPORTED: OS=windows-msvc
|
|
|
|
@_weakLinked public func f() { }
|
|
|
|
// @_weakLinked -- banned in @abi
|
|
struct WeakLinked {
|
|
@abi(@_weakLinked func fn1()) // expected-error {{unused '_weakLinked' attribute in '@abi'}} {{8-20=}}
|
|
@_weakLinked func fn1() {}
|
|
|
|
@abi(@_weakLinked func fn2()) // expected-error {{unused '_weakLinked' attribute in '@abi'}} {{8-20=}}
|
|
func fn2() {}
|
|
|
|
@abi(func fn3())
|
|
@_weakLinked func fn3() {}
|
|
}
|