mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
When the new mangling is enabled permanently, the option can be removed from the RUN command lines again.
29 lines
534 B
Swift
29 lines
534 B
Swift
// RUN: %target-swift-frontend -Xllvm -new-mangling-for-tests %s -Onone -emit-ir -g -o - | %FileCheck %s
|
|
|
|
class ClassA
|
|
{
|
|
var x : Int64
|
|
var y : Float
|
|
|
|
init (_ input : Int64)
|
|
{
|
|
x = input
|
|
y = Float(input) + 0.5
|
|
}
|
|
}
|
|
|
|
class ClassB : ClassA
|
|
{
|
|
override init (_ input : Int64)
|
|
{
|
|
// CHECK: @_T0{{.*}}6ClassBCACs5Int64Vcfc
|
|
// CHECK: alloca {{.*}}ClassB*
|
|
// CHECK: alloca i64
|
|
// CHECK-NOT: alloca
|
|
// CHECK: ret {{.*}}ClassB
|
|
super.init (input)
|
|
}
|
|
}
|
|
|
|
let b = ClassB(1);
|