mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
15 lines
625 B
Swift
15 lines
625 B
Swift
// RUN: %empty-directory(%t)
|
|
//
|
|
// RUN: echo 'public struct S {}' > %t/Other.swift
|
|
// RUN: %target-swift-frontend -emit-module -emit-module-path %t/Other.swiftmodule -parse-as-library %t/Other.swift -enable-library-evolution
|
|
//
|
|
// RUN: %target-swift-emit-module-interface(%t/WeakLinksOther.swiftinterface) %s -I %t
|
|
// RUN: %target-swift-typecheck-module-from-interface(%t/WeakLinksOther.swiftinterface) -I %t
|
|
// RUN: %FileCheck %s < %t/WeakLinksOther.swiftinterface
|
|
|
|
// UNSUPPORTED: OS=windows-msvc
|
|
|
|
// The @_weakLinked attribute should not be printed in swiftinterfaces.
|
|
// CHECK-NOT: @_weakLinked
|
|
@_weakLinked import Other
|