Files
swift-mirror/test/Misc/prioritize_solver_memory_threshold.swift
Mark Lacey d135daae44 [ConstraintSystem] Honor -solver-memory-threshold if present.
If the user specifies a memory threshold on the command-line, try to
honor that value and consider expressions too complex if we end up
allocating more memory than they specify.

Fixes rdar://problem/40952582 (aka https://bugs.swift.org/browse/SR-7525).
2018-06-08 17:38:52 -07:00

4 lines
244 B
Swift

// RUN: %target-typecheck-verify-swift -solver-memory-threshold 1
func foo() { _ = 1 } // expected-error {{the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions}}