Files
swift-mirror/test/IRGen/objc_protocols_jit.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

18 lines
460 B
Swift

// RUN: %empty-directory(%t)
// RUN: %build-irgen-test-overlays
// RUN: %target-swift-frontend -emit-module -o %t %S/Inputs/objc_protocols_Bas.swift
// RUN: %target-swift-frontend -sdk %S/Inputs -I %t -primary-file %s -use-jit -emit-ir -disable-objc-attr-requires-foundation-module | %FileCheck %s
// REQUIRES: objc_interop
// CHECK: c"x\00"
// CHECK: c"setX:\00"
@objc protocol Foo {
var x: Int8 { get set }
}
class Bar: Foo {
@objc var x: Int8 = 0
}