File tree Expand file tree Collapse file tree 2 files changed +33
-0
lines changed Expand file tree Collapse file tree 2 files changed +33
-0
lines changed Original file line number Diff line number Diff line change
1
+ // RUN: %empty-directory(%t)
2
+ //
3
+ // RUN: %target-swift-frontend -emit-module -emit-module-path %t/weaklinked_import_helper.swiftmodule -parse-as-library %S/Inputs/weaklinked_import_helper.swift -enable-library-evolution
4
+ //
5
+ // RUN: echo '@_weakLinked import weaklinked_import_helper' > %t/intermediate.swift
6
+ // RUN: %target-swift-frontend -emit-module -emit-module-path %t/intermediate.swiftmodule -parse-as-library %t/intermediate.swift -I %t -enable-library-evolution
7
+ //
8
+ // RUN: %target-swift-frontend -primary-file %s -I %t -emit-ir | %FileCheck %s
9
+
10
+ // UNSUPPORTED: OS=windows-msvc
11
+
12
+ import intermediate
13
+ import weaklinked_import_helper
14
+
15
+ // Symbols from weaklinked_import_helper should be strong, despite intermediate
16
+ // importining the module @_weakLinked.
17
+
18
+ // CHECK-DAG: declare swiftcc {{.+}} @"$s24weaklinked_import_helper2fnyyF"()
19
+ fn ( )
Original file line number Diff line number Diff line change
1
+ // RUN: %empty-directory(%t)
2
+ //
3
+ // RUN: echo 'public struct S {}' > %t/Other.swift
4
+ // RUN: %target-swift-frontend -emit-module -emit-module-path %t/Other.swiftmodule -parse-as-library %t/Other.swift -enable-library-evolution
5
+ //
6
+ // RUN: %target-swift-emit-module-interface(%t/WeakLinksOther.swiftinterface) %s -I %t
7
+ // RUN: %target-swift-typecheck-module-from-interface(%t/WeakLinksOther.swiftinterface) -I %t
8
+ // RUN: %FileCheck %s < %t/WeakLinksOther.swiftinterface
9
+
10
+ // UNSUPPORTED: OS=windows-msvc
11
+
12
+ // The @_weakLinked attribute should not be printed in swiftinterfaces.
13
+ // CHECK-NOT: @_weakLinked
14
+ @_weakLinked import Other
You can’t perform that action at this time.
0 commit comments