Files
swift-mirror/test/Interop/Cxx/class/mutability-annotations-module-interface.swift

17 lines
691 B
Swift

// RUN: %target-swift-ide-test -print-module -module-to-print=MutabilityAnnotations -I %S/Inputs -source-filename=x -enable-experimental-cxx-interop | %FileCheck %s
// CHECK: struct HasConstMethodAnnotatedAsMutating {
// CHECK: mutating func annotatedMutating() -> Int32
// CHECK: mutating func annotatedMutatingWithOtherAttrs() -> Int32
// CHECK: var a: Int32
// CHECK: }
// CHECK: struct HasMutableProperty {
// CHECK: func annotatedNonMutating() -> Int32
// CHECK: mutating func noAnnotation() -> Int32
// CHECK: mutating func contradictingAnnotations() -> Int32
// CHECK: func duplicateAnnotations() -> Int32
// CHECK: var a: Int32
// CHECK: var b: Int32
// CHECK: }