Files
swift-mirror/test/ClangModules/cfuncs_ir.swift
Dmitri Hrybenko f43843f25c tests: use the new substitution for the mock SDK
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
2015-02-11 18:57:29 +00:00

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)