File tree Expand file tree Collapse file tree 4 files changed +24
-0
lines changed
test/ClangImporter/MixedSource
Inputs/AutolinkingTest.framework Expand file tree Collapse file tree 4 files changed +24
-0
lines changed Original file line number Diff line number Diff line change
1
+ struct Test {
2
+ int value ;
3
+ };
Original file line number Diff line number Diff line change
1
+ framework module AutolinkingTest {
2
+ umbrella header "AutolinkingTest.h"
3
+ export *
4
+ module * { export * }
5
+ }
Original file line number Diff line number Diff line change
1
+ // RUN: %target-swift-frontend %s -module-name AutolinkingTest -F %S/Inputs -import-underlying-module -emit-ir | %FileCheck %s
2
+
3
+ // Linux uses a different autolinking mechanism, based on
4
+ // swift-autolink-extract. This file tests the Darwin mechanism.
5
+ // UNSUPPORTED: OS=linux-gnu
6
+ // UNSUPPORTED: OS=linux-gnueabihf
7
+ // UNSUPPORTED: OS=freebsd
8
+ // UNSUPPORTED: OS=linux-androideabi
9
+
10
+ // Use a type declared in the Clang part of the module.
11
+ public let y = Test ( )
12
+
13
+ // CHECK: !llvm.linker.options
14
+ // CHECK-NOT: !{!"-framework", !"AutolinkingTest"}
15
+ // CHECK: !{!"-lswiftCore"}
16
+ // CHECK-NOT: !{!"-framework", !"AutolinkingTest"}
You can’t perform that action at this time.
0 commit comments