mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
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).
4 lines
244 B
Swift
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}}
|