mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Also, make the analogous change to apple/swift-driver#1372, which gets the sanitizer tests working on Android again, and remove the lld_lto feature in the tests, which is now unused.
21 lines
1.1 KiB
Swift
21 lines
1.1 KiB
Swift
// Target-specific tests for C++ copy constructor code generation.
|
|
|
|
// RUN: %swift -module-name MySwift -target aarch64-unknown-linux-android -dump-clang-diagnostics -I %S/Inputs -enable-experimental-cxx-interop -emit-ir %s -parse-stdlib -parse-as-library -disable-legacy-type-info -Xcc -fignore-exceptions | %FileCheck %s -check-prefix=ITANIUM_ARM
|
|
|
|
// REQUIRES: OS=linux-android
|
|
// REQUIRES: CPU=aarch64
|
|
|
|
import Constructors
|
|
import TypeClassification
|
|
|
|
// ITANIUM_ARM-LABEL: define protected swiftcc void @"$s7MySwift35copyWithUserProvidedCopyConstructorySo03Has{{cdeF0V_ACtACF|efgH0V_ADtADF}}"
|
|
// ITANIUM_ARM-SAME: (ptr {{.*}}[[ARG0:%.*]], ptr {{.*}}[[ARG1:%.*]], ptr {{.*}}[[ARG2:%.*]])
|
|
// ITANIUM_ARM: call void @_ZN30HasUserProvidedCopyConstructorC2ERKS_(ptr [[ARG0]], ptr [[ARG2]])
|
|
// ITANIUM_ARM: call void @_ZN30HasUserProvidedCopyConstructorC2ERKS_(ptr [[ARG1]], ptr [[ARG2]])
|
|
// ITANIUM_ARM: ret void
|
|
|
|
public func copyWithUserProvidedCopyConstructor(_ x: HasUserProvidedCopyConstructor)
|
|
-> (HasUserProvidedCopyConstructor, HasUserProvidedCopyConstructor) {
|
|
return (x, x)
|
|
}
|