Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / lldb / test / API / python_api / default-constructor / sb_stringlist.py
blob98e527dcf4bf6774e68130d11459976378bd1c01
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.AppendString("another string")
10 obj.AppendString(None)
11 obj.AppendList(None, 0)
12 obj.AppendList(lldb.SBStringList())
13 obj.GetSize()
14 obj.GetStringAtIndex(0xFFFFFFFF)
15 obj.Clear()
16 for n in obj:
17 s = str(n)