2 from lldbsuite
.test
.decorators
import *
3 from lldbsuite
.test
.lldbtest
import *
4 from lldbsuite
.test
import lldbutil
7 class TestCase(TestBase
):
10 self
.createTestTarget()
12 # Empty structs/classes have size 1 in C++.
13 self
.expect_expr("sizeof(Empty) == sizeof_empty", result_value
="true")
15 "sizeof(EmptyClass) == sizeof_empty_class", result_value
="true"
18 "sizeof(EmptyClassAligned) == sizeof_empty_class_aligned",
22 "sizeof(ClassEmptyMember) == sizeof_class_empty_member", result_value
="true"
24 self
.expect_expr("sizeof(SingleMember) == sizeof_single", result_value
="true")
26 "sizeof(SingleMemberClass) == sizeof_single_class", result_value
="true"
28 self
.expect_expr("sizeof(PaddingMember) == sizeof_padding", result_value
="true")
30 "sizeof(PaddingMemberClass) == sizeof_padding_class", result_value
="true"