mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
This fixes an assertion failure when building certain projects for arm64e with `-use-clang-function-types` Swift compiler flag: ``` Expected non-null Clang type for @convention(c)/@convention(block) function but found nullptr ``` rdar://121227452
12 lines
451 B
Swift
12 lines
451 B
Swift
// RUN: %swift -emit-ir -module-name CopyConstructorsPtrAuth -target arm64e-apple-macosx11.0 -use-clang-function-types -Xcc -D -Xcc ENABLE_PTRAUTH -dump-clang-diagnostics -I %S/Inputs -cxx-interoperability-mode=default %s -parse-as-library
|
|
|
|
// REQUIRES: CPU=arm64e
|
|
// REQUIRES: OS=macosx
|
|
|
|
import Constructors
|
|
|
|
public func copyPtrAuthMemberWithDefaultCopyConstructor(_ x: HasPtrAuthMember)
|
|
-> (HasPtrAuthMember, HasPtrAuthMember) {
|
|
return (x, x)
|
|
}
|