2 Tests C99's flexible array members.
6 from lldbsuite
.test
.decorators
import *
7 from lldbsuite
.test
.lldbtest
import *
8 from lldbsuite
.test
import lldbutil
11 class TestCase(TestBase
):
15 lldbutil
.run_to_source_breakpoint(
16 self
, "// break here", lldb
.SBFileSpec("main.c")
19 self
.expect_var_path("c->flexible", type="char[]", summary
='"contents"')
20 # self.expect_var_path("sc->flexible", type="signed char[]", summary='"contents"')
22 "uc->flexible", type="unsigned char[]", summary
='"contents"'
24 # TODO: Make this work
25 self
.expect("expr c->flexible", error
=True, substrs
=["incomplete", "char[]"])
27 "expr sc->flexible", error
=True, substrs
=["incomplete", "signed char[]"]
30 "expr uc->flexible", error
=True, substrs
=["incomplete", "unsigned char[]"]