mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Attempting to unblock bots Specifically, this also seems to fail on PR tests: ``` Failed Tests (1): Swift(iphonesimulator-x86_64) :: embedded/wrong-linkage.swift ``` rdar://142601111
10 lines
358 B
Swift
10 lines
358 B
Swift
// RUN: %target-swift-emit-ir %s -enable-experimental-feature Embedded -verify -wmo
|
|
|
|
// REQUIRES: swift_feature_Embedded
|
|
// REQUIRES: OS=macosx
|
|
|
|
@_cdecl("posix_memalign")
|
|
func posix_memalign(_ resultPtr:UnsafeMutablePointer<UnsafeMutableRawPointer?>, _ :Int, _ :Int) -> Int32 { // expected-error {{function has wrong linkage to be called from}}
|
|
return 0
|
|
}
|