mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
I am doing this separately from the actual change to eliminate the option to make it easier to review.
18 lines
460 B
Swift
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
|
|
}
|