Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / lldb / test / API / python_api / default-constructor / sb_address.py
blobf5a40b4b33d4328d560b3cca4d4c7c8c1a36a29f
1 """
2 Fuzz tests an object after the default construction to make sure it does not crash lldb.
3 """
5 import sys
6 import lldb
9 def fuzz_obj(obj):
10 obj.GetFileAddress()
11 obj.GetLoadAddress(lldb.SBTarget())
12 obj.SetLoadAddress(0xFFFF, lldb.SBTarget())
13 obj.OffsetAddress(sys.maxsize)
14 obj.GetDescription(lldb.SBStream())
15 obj.GetSection()
16 obj.GetSymbolContext(lldb.eSymbolContextEverything)
17 obj.GetModule()
18 obj.GetCompileUnit()
19 obj.GetFunction()
20 obj.GetBlock()
21 obj.GetSymbol()
22 obj.GetLineEntry()
23 obj.Clear()