mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
This is required to correctly use the mock SDK when the SDK overlay is built and tested separately. (Otherwise, the mock SDK might not get used, because the overlay SDK options would expand from the %-substitution, appear first on the command line, and shadow the mock SDK in the search path). Swift SVN r25185
19 lines
378 B
Swift
19 lines
378 B
Swift
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) %s -emit-ir -o - | FileCheck %s
|
|
|
|
// REQUIRES: OS=macosx
|
|
|
|
import cfuncs
|
|
|
|
// CHECK: call void @cfunc1
|
|
cfunc1()
|
|
|
|
// CHECK: call double @pow(double 3.141590e+00, double 2.718280e+00)
|
|
var d = pow(3.14159, 2.71828)
|
|
|
|
// CHECK: call i32 @"\01_something_else"(i32 17)
|
|
renamed(17)
|
|
|
|
// CHECK: call void @exit(i32 17)
|
|
exit(17)
|
|
|