Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / lldb / test / API / python_api / default-constructor / sb_instruction.py
blobfbfb2313688a2ad7800d9e8a8212bbc2aa64a961
1 """
2 Fuzz tests an object after the default construction to make sure it does not crash lldb.
3 """
5 import lldb
8 def fuzz_obj(obj):
9 obj.GetAddress()
10 obj.GetByteSize()
11 obj.DoesBranch()
12 try:
13 obj.Print(None)
14 except Exception:
15 pass
16 obj.GetDescription(lldb.SBStream())
17 obj.EmulateWithFrame(lldb.SBFrame(), 0)
18 obj.DumpEmulation("armv7")
19 obj.TestEmulation(lldb.SBStream(), "my-file")