Files
swift-mirror/test/IRGen/superclass_constraint.swift
Michael Gottesman fd4828e40a Eliminate -assume-parsing-unqualified-ownership-sil from tests.
I am doing this separately from the actual change to eliminate the option to
make it easier to review.
2018-12-19 12:54:13 -08:00

17 lines
523 B
Swift

// RUN: %target-swift-frontend %s -emit-ir | %FileCheck %s
public protocol A {}
public class AC : A{}
public class CVC<A1: AC> where A1: A {
// CHECK-LABEL: define{{.*}} @"$s21superclass_constraint3CVCCACyxGycfc"
public init() {
// CHECK: [[A:%.*]] = alloca %T21superclass_constraint3CVCC*
// CHECK-NOT: ret %T21superclass_constraint3CVCC*
// CHECK: store %T21superclass_constraint3CVCC* %0, %T21superclass_constraint3CVCC** [[A]]
// CHECK: ret %T21superclass_constraint3CVCC*
var a = self
}
}