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