mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
18 lines
447 B
Swift
18 lines
447 B
Swift
// RUN: %empty-directory(%t)
|
|
// RUN: %build-irgen-test-overlays
|
|
// RUN: %target-swift-frontend(mock-sdk: -sdk %S/Inputs -I %t) %s -emit-ir | %FileCheck %s
|
|
|
|
// REQUIRES: objc_interop
|
|
|
|
import Foundation
|
|
|
|
// We can't emit categories when extending CF types because they don't have
|
|
// real class metadata.
|
|
// CHECK-NOT: @"OBJC_CLASS_$_CGImage"
|
|
|
|
extension CGImage {
|
|
func foo() {}
|
|
var bar: Int { return 0 }
|
|
subscript(x: Int) -> Int { return x }
|
|
}
|