Files
swift-mirror/test/IRGen/foreign_class_extension.swift
Dmitri Gribenko 486cab447d tests: replace 'rm -rf %t && mkdir -p %t' with '%empty-directory(%t)'
These changes were made using a script.
2017-06-04 11:08:39 -07:00

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