Files
swift-mirror/test/Parse/weakLinked.swift
Saleem Abdulrasool 03af9467d8 ParseSIL: prevent _weakLinked on COFF targets
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.
2019-01-11 12:36:00 -08:00

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