Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / lldb / test / API / python_api / default-constructor / sb_function.py
blob3967afe1a1fe8e865958a5bb5dcb76956daec987
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.GetName()
10 obj.GetMangledName()
11 obj.GetInstructions(lldb.SBTarget())
12 sa = obj.GetStartAddress()
13 ea = obj.GetEndAddress()
14 # Do fuzz testing on the address obj, it should not crash lldb.
15 import sb_address
17 sb_address.fuzz_obj(sa)
18 sb_address.fuzz_obj(ea)
19 obj.GetPrologueByteSize
20 obj.GetDescription(lldb.SBStream())