mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Previously we were only getting system search paths (via dlopen), so you couldn't ever load system frameworks. This is the compiler side of <rdar://problem/17629517>, which is unfortunately not the useful part. Swift SVN r19831
10 lines
348 B
Swift
10 lines
348 B
Swift
// RUN: rm -rf %t && mkdir -p %t
|
|
// RUN: cp -R %S/Inputs/VerySmallObjCFramework.framework %t
|
|
// RUN: %clang -dynamiclib %S/Inputs/VerySmallObjCFramework.m -fmodules -F %t -o %t/VerySmallObjCFramework.framework/VerySmallObjCFramework
|
|
// RUN: %swift_driver -F %t -i %s | FileCheck %s
|
|
|
|
import VerySmallObjCFramework
|
|
|
|
// CHECK: 42
|
|
println(globalValue)
|