xref: /llvm-project/lldb/test/API/types/TestFloatTypesExpr.py (revision 2238dcc39358353cac21df75c3c3286ab20b8f53)
1"""
2Test that variable expressions of floating point types are evaluated correctly.
3"""
4
5
6import AbstractBase
7
8import lldb
9from lldbsuite.test.decorators import *
10from lldbsuite.test.lldbtest import *
11from lldbsuite.test import lldbutil
12
13
14class FloatTypesExprTestCase(AbstractBase.GenericTester):
15    # rdar://problem/8493023
16    # test/types failures for Test*TypesExpr.py: element offset computed wrong
17    # and sign error?
18
19    def test_float_type(self):
20        """Test that float-type variable expressions are evaluated correctly."""
21        self.build_and_run_expr("float.cpp", set(["float"]))
22
23    @skipUnlessDarwin
24    def test_float_type_from_block(self):
25        """Test that float-type variables are displayed correctly from a block."""
26        self.build_and_run_expr("float.cpp", set(["float"]), bc=True)
27