mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
17 lines
382 B
Swift
17 lines
382 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 ptr
|
|
// CHECK-NOT: ret ptr
|
|
// CHECK: store ptr %0, ptr [[A]]
|
|
// CHECK: ret ptr
|
|
var a = self
|
|
}
|
|
}
|