Files
swift-mirror/test/embedded/wrong-linkage.swift
Arnold Schwaighofer c7b343d603 Disable this test on anything but macOS
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
2025-01-09 14:17:02 -08:00

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
}