Files
swift-mirror/validation-test/Serialization/AllowErrors/invalid-pattern.swift
Ben Barham 69a5a3d3e8 [Serialization] Check for anchoring VarDecl when serializing PDB
An invalid PDB may have no anchoring VarDecl when allowing errors, make
sure not to crash in that case.
2021-08-06 17:55:02 +10:00

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