mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
16 lines
604 B
Swift
16 lines
604 B
Swift
// RUN: %target-swift-ide-test -print-module -cxx-interoperability-mode=upcoming-swift -print-implicit-attrs -module-to-print=VirtualMethods -I %S/Inputs -source-filename=x | %FileCheck %s
|
|
|
|
// CHECK: struct Base {
|
|
// CHECK-NEXT: init()
|
|
// CHECK-NEXT: @available(*, unavailable, message: "virtual function is not available in Swift because it is pure")
|
|
// CHECK-NEXT: mutating func foo()
|
|
|
|
// CHECK: struct Derived<CInt> {
|
|
// CHECK-NEXT: init()
|
|
// CHECK-NEXT: mutating func foo()
|
|
// CHECK: }
|
|
|
|
// CHECK: struct VirtualNonAbstractBase {
|
|
// CHECK-NEXT: init()
|
|
// CHECK-NEXT: func nonAbstractMethod()
|