Files
swift-mirror/test/IRGen/c_functions.swift
Anton Blanchard b1827d8a8f Add powerpc64le Linux support
This patch adds powerpc64le Linux support. While the patch also adds
the matching powerpc64 bits, there are endian issues that need to be
sorted out.

The PowerPC LLVM changes for the swift ABI (eg returning three element
non-homogeneous aggregates) are still in the works, but a simple LLVM
fix to allow those aggregates results in swift passing all but 8
test cases.
2016-01-15 06:48:31 +00:00

13 lines
475 B
Swift

// RUN: rm -rf %t && mkdir -p %t
// RUN: %target-swift-frontend -import-objc-header %S/Inputs/c_functions.h -primary-file %s -emit-ir | FileCheck %s
// This is deliberately not a SIL test so that we can test SILGen too.
// CHECK-LABEL: define hidden void @_TF11c_functions14testOverloadedFT_T_
func testOverloaded() {
// CHECK: call void @_Z10overloadedv()
overloaded()
// CHECK: call void @_Z10overloadedi(i32{{( signext)?}} 42)
overloaded(42)
} // CHECK: {{^}$}}