Files
swift-mirror/test/IRGen/batchmode_ast_errors.swift
Arnold Schwaighofer 7543d4df0b IRGen: Deal with broken conformance in the AST
rdar://57876556
2020-02-20 08:21:14 -08:00

19 lines
381 B
Swift

// RUN: not %target-swift-frontend -primary-file %s %S/Inputs/batchmode_errors.swift -emit-ir 2>&1 | %FileCheck %s
// REQUIRES: objc_interop
// Verify that we don't crash (in IRGen).
// CHECK-NOT: Stack dump
extension SomeClass : SomeProto {
func conform() {}
}
func genericParam<T: WithAssoc>(_ t: T) {
}
func testBuggyGenericParam() {
genericParam(BuggyConformer())
}