Skip to content

Commit 2f658f1

Browse files
authored
Merge pull request #83428 from hamishknight/fix-test
2 parents 4d76319 + aac9c4d commit 2f658f1

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

validation-test/IDE/crashers/fd52bd37cd5c96.swift

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
// {"kind":"complete","original":"ea806f48","signature":"swift::Type::transformRec(llvm::function_ref<std::__1::optional<swift::Type> (swift::TypeBase*)>) const"}
2-
// RUN: not --crash %target-swift-ide-test -code-completion -batch-code-completion -skip-filecheck -code-completion-diagnostics -source-filename %s
2+
// The issue here is that the solver attempts to recursively apply the same
3+
// dynamic member lookup until eventually it overflows the stack. Make sure
4+
// we either timeout or crash.
5+
// RUN: not %{python} %S/../../../test/Inputs/timeout.py 60 \
6+
// RUN: %target-swift-ide-test -code-completion -batch-code-completion -skip-filecheck -code-completion-diagnostics -source-filename %s || \
7+
// RUN: not --crash %target-swift-ide-test -code-completion -batch-code-completion -skip-filecheck -code-completion-diagnostics -source-filename %s
38
@dynamicMemberLookup
49
struct a<b{
510
c: () -> b^subscript<d>(dynamicMember e: WritableKeyPath<b, d>) a<d> }

0 commit comments

Comments
 (0)