Files
swift-mirror/test/ClangImporter/cfuncs_ir.swift
Jordan Rose 61798ff6ec [test] Rename test/ClangModules to test/ClangImporter. (#5618)
...to match the component in include/ and lib/. No content change.
2016-11-02 18:00:53 -07:00

19 lines
379 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)