// 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 }
}
