Files
swift-mirror/test/DebugInfo/BridgingHeaderPCH.swift
T
Hiroshi Yamauchi a3e5f0bcef Set up the AST-affecting ClangImporter CodeGenOpts options early (#86175)
This is to keep clang module cache hashes consistent throughout the
build and avoid inconsistent hash errors due to the CodeGenOpts
changing at the IRGen phase in the middle of a build.

https://github.com/swiftlang/swift/issues/86116
2026-01-09 10:38:46 -08:00

11 lines
434 B
Swift

// RUN: %target-swift-frontend \
// RUN: -emit-pch %S/Inputs/InlineBridgingHeader.h -o %t.pch -g
// RUN: %target-swift-frontend \
// RUN: -import-objc-header %t.pch -emit-ir -g %s -o - | %FileCheck %s
// CHECK: !DICompileUnit(language: DW_LANG_Swift
// CHECK: !DICompileUnit(language: DW_LANG_{{ObjC|C99|C11}},
// CHECK: !DICompileUnit(language: DW_LANG_{{ObjC|C99|C11}}{{.*}}splitDebugFilename: "{{.*}}.pch",{{.*}}dwoId:
Foo()