Files
swift-mirror/test/DebugInfo/shadow_copies.swift
Erik Eckstein 1d3724666f tests: convert about 400 tests to the new mangling by using the -new-mangling-for-tests option
When the new mangling is enabled permanently, the option can be removed from the RUN command lines again.
2017-01-24 15:27:45 -08:00

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);