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
17 lines
555 B
Swift
17 lines
555 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
|
|
|
|
// UNSUPPORTED: OS=windows-msvc
|
|
|
|
@_weakLinked import has_symbol_helper_clang
|
|
|
|
public func testClangDecls() {
|
|
// CHECK: %{{[0-9]+}} = call i1 @"$sSo9clangFuncyys5Int32VFTwS"()
|
|
if #_hasSymbol(clangFunc(_:)) {}
|
|
}
|
|
|
|
// --- clangFunc(_:) ---
|
|
// CHECK: define linkonce_odr hidden i1 @"$sSo9clangFuncyys5Int32VFTwS"() #1{{( comdat)?}} {
|
|
// CHECK: [[RES:%.*]] = icmp ne ptr @clangFunc, null
|
|
// CHECK: ret i1 [[RES]]
|