[mlir][PDLL] Allow (and ignore) `-D` tablegen macros. (#124166)
[llvm-project.git] / lldb / test / API / lang / cpp / const_static_integral_member_int128 / TestConstStaticIntegralMemberInt128.py
blob72a2c629c904531850bca0a11f9311b52fcaeeed
1 """
2 Tests const static data members as specified by C++11 [class.static.data]p3
3 with (u)int128_t types.
4 """
6 import lldb
7 from lldbsuite.test.decorators import *
8 from lldbsuite.test.lldbtest import *
9 from lldbsuite.test import lldbutil
12 class TestCase(TestBase):
13 # int128 is not available on 32-bit ARM.
14 @skipIf(archs=["arm"])
15 def test_int128(self):
16 self.build()
17 lldbutil.run_to_source_breakpoint(
18 self, "// break here", lldb.SBFileSpec("main.cpp")
21 # Try to use the (u)int128_t data members which are not supported at
22 # the moment. Just verify that LLDB doesn't report an incorrect value
23 # for them and just treats them as normal variables (which will lead
24 # to linker errors as they are not defined anywhere).
25 self.expect(
26 "expr A::int128_max", error=True, substrs=["Couldn't look up symbols:"]
28 self.expect(
29 "expr A::uint128_max", error=True, substrs=["Couldn't look up symbols:"]
31 self.expect(
32 "expr A::int128_min", error=True, substrs=["Couldn't look up symbols:"]
34 self.expect(
35 "expr A::uint128_min", error=True, substrs=["Couldn't look up symbols:"]