blob: 304268f33f7029d7db242d01f8ee3f92c8727aca [file] [log] [blame]
// REQUIRES: objc_interop
// RUN: rm -rf %t.cache
// RUN: %target-swift-frontend -emit-ir %s -g -I %S/Inputs -o - \
// RUN: -module-cache-path %t.cache | %FileCheck %s --check-prefix=FIRST
// RUN: %target-swift-frontend -emit-ir %s -g -I %S/Inputs -o - \
// RUN: -module-cache-path %t.cache | %FileCheck %s --check-prefix=CACHED
// Test that the paths have no extra "./" components on rebuild.
// FIRST: !DIFile(filename: "{{.*}}/include/objc/NSObject.h",
// CACHED: !DIFile(filename: "{{.*}}/include/objc/NSObject.h",
import ObjectiveC
extension NSObject : CVarArg {
/// Transform `self` into a series of machine words that can be
/// appropriately interpreted by C varargs
public var _cVarArgEncoding: [Int] {
_autorelease(self)
return _encodeBitsAsWords(self)
}
}