1import lldb 2from lldbsuite.test.decorators import * 3from lldbsuite.test.lldbtest import * 4from lldbsuite.test import lldbutil 5 6class TestCase(TestBase): 7 8 mydir = TestBase.compute_mydir(__file__) 9 10 @no_debug_info_test 11 def test(self): 12 self.build() 13 self.dbg.CreateTarget(self.getBuildArtifact("a.out")) 14 15 # The offset of f2 should be 8 because of `alignas(8)`. 16 self.expect_expr("(intptr_t)&d3g.f2 - (intptr_t)&d3g", result_value="8") 17