mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
An invalid PDB may have no anchoring VarDecl when allowing errors, make sure not to crash in that case.
8 lines
313 B
Swift
8 lines
313 B
Swift
// RUN: %empty-directory(%t)
|
|
|
|
// -parse-as-library added so that the PDB isn't added to a TopLevelCodeDecl,
|
|
// which isn't serialized at all
|
|
// RUN: %target-swift-frontend -emit-module -o %t/errors.swiftmodule -module-name errors -experimental-allow-module-with-compiler-errors -parse-as-library %s
|
|
|
|
let self = 1
|