Commit Graph

4 Commits

Author SHA1 Message Date
Dmitri Gribenko
48aa4a1eba Re-enable validation-test/IDE/crashers/029-swift-decl-walk.swift 2015-12-21 22:21:04 -07:00
Mishal Shah
56275ecafc [SR-295] Disabled 029-swift-decl-walk test due to failure 2015-12-17 16:22:33 -08:00
Dmitri Gribenko
488acb7d67 Annotate new tests for the --no-assertions build 2015-12-17 13:09:25 -07:00
practicalswift
cbaf989677 [SourceKit] Add test case for crash triggered in swift::Decl::walk(swift::ASTWalker&)
Stack trace:

```
found code completion token A at offset 114
child source range not contained within its parent: var f
  parent range: [<INPUT-FILE>:2:1 - line:2:11] RangeText="{var f={{}"
  child range: [<INPUT-FILE>:2:2 - line:2:12] RangeText="var f={{}r"
14 swift-ide-test  0x0000000000ae6734 swift::Decl::walk(swift::ASTWalker&) + 20
15 swift-ide-test  0x0000000000b6fbce swift::SourceFile::walk(swift::ASTWalker&) + 174
16 swift-ide-test  0x0000000000ba00c4 swift::verify(swift::SourceFile&) + 52
17 swift-ide-test  0x000000000086a4a3 swift::Parser::parseTopLevel() + 563
18 swift-ide-test  0x000000000086591b swift::parseIntoSourceFile(swift::SourceFile&, unsigned int, bool*, swift::SILParserState*, swift::PersistentParserState*, swift::DelayedParsingCallbacks*) + 107
19 swift-ide-test  0x0000000000774176 swift::CompilerInstance::performSema() + 2918
20 swift-ide-test  0x000000000071cc33 main + 35011
Stack dump:
0.	Program arguments: swift-ide-test -code-completion -code-completion-token=A -source-filename=<INPUT-FILE>
1.	With parser at source location: <INPUT-FILE>:2:13
2.	While walking into decl declaration 0x5338df0 at <INPUT-FILE>:2:1
3.	While verifying ranges declaration 0x53390a8 at <INPUT-FILE>:2:2
```
2015-12-16 14:07:22 +01:00