mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
rdar://132124067 LLVM code gen has changed, so we need to adjust the expected output in our tests accordingly
16 lines
500 B
Swift
16 lines
500 B
Swift
// RUN: %empty-directory(%t)
|
|
// RUN: %target-swift-frontend -emit-irgen %s -I %t -I %S/Inputs/has_symbol -module-name test | %FileCheck %s
|
|
|
|
// REQUIRES: objc_interop
|
|
|
|
@_weakLinked import has_symbol_helper_objc
|
|
|
|
public func testClassTypes() {
|
|
// CHECK: %{{[0-9]+}} = call i1 @"$sSo9ObjCClassCTwS"()
|
|
if #_hasSymbol(ObjCClass.self) {}
|
|
}
|
|
|
|
// CHECK: define linkonce_odr hidden i1 @"$sSo9ObjCClassCTwS"()
|
|
// CHECK: [[RES:%.*]] = icmp ne ptr @"OBJC_CLASS_$_ObjCClass", null
|
|
// CHECK: ret i1 [[RES]]
|