Files
clang-p2996/lldb/test/API/commands/expression/pr52257/TestExprCrash.py
Jordan Rupprecht 360d901bf0 Revert "[lldb] Disable minimal import mode for RecordDecls that back FieldDecls"
This reverts commit 3bf96b0329.

It causes crashes as reported in PR52257 and a few other places. A reproducer is bundled with this commit to verify any fix forward. The original test is left in place, but marked XFAIL as it now produces the wrong result.

Reviewed By: teemperor

Differential Revision: https://reviews.llvm.org/D113449
2021-11-10 10:38:01 -08:00

19 lines
455 B
Python

"""
Verify that LLDB doesn't crash during expression evaluation.
"""
import lldb
from lldbsuite.test.decorators import *
from lldbsuite.test.lldbtest import *
from lldbsuite.test import lldbutil
class ExprCrashTestCase(TestBase):
mydir = TestBase.compute_mydir(__file__)
def test_pr52257(self):
self.build()
self.createTestTarget()
self.expect_expr("b", result_type="B", result_children=[ValueCheck(name="tag_set_")])