mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
PE/COFF does not provide weak linking semantics. Ensure that we diagnose use of `_weakLinked` on those targets rather than consuming it and attempting to generate IR for that.
6 lines
218 B
Swift
6 lines
218 B
Swift
// RUN: %swift -target x86_64-unknown-windows-msvc -parse-stdlib -typecheck -verify %s
|
|
|
|
// expected-error@+1{{attribute '_weakLinked' is unsupported on target 'x86_64-unknown-windows-msvc'}}
|
|
@_weakLinked func f() { }
|
|
|