Files
swift-mirror/test/attr/attr_weaklinked.swift
Becca Royal-Gordon 01431b87b2 Make @abi non-experimental
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.
2025-05-05 13:50:51 -07:00

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() {}
}