mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
15 lines
581 B
Swift
15 lines
581 B
Swift
// RUN: rm -rf %t && mkdir -p %t
|
|
// RUN: %target-swift-frontend -assume-parsing-unqualified-ownership-sil -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 swiftcc void @_T011c_functions14testOverloadedyyF
|
|
func testOverloaded() {
|
|
// CHECK: call void @_Z10overloadedv()
|
|
overloaded()
|
|
// CHECK: call void @_Z10overloadedi(i32{{( signext)?}} 42)
|
|
overloaded(42)
|
|
// CHECK: call void @{{.*}}test_my_log
|
|
test_my_log()
|
|
} // CHECK: {{^}$}}
|