Revert "[LoongArch] Eliminate the redundant sign extension of division (#107971)"
[llvm-project.git] / lldb / test / API / types / TestIntegerTypeExpr.py
blob77ce42541a05487c66d6cc84776cde821d666084
1 """
2 Test that variable expressions of type integer are evaluated correctly.
3 """
5 import AbstractBase
7 from lldbsuite.test.decorators import *
10 class IntegerTypeExprTestCase(AbstractBase.GenericTester):
11 @skipUnlessDarwin
12 def test_unsigned_short_type_from_block(self):
13 """Test that 'unsigned short'-type variables are displayed correctly from a block."""
14 self.build_and_run_expr("unsigned_short.cpp", ["unsigned", "short"], bc=True)
16 def test_int_type(self):
17 """Test that int-type variable expressions are evaluated correctly."""
18 self.build_and_run_expr("int.cpp", ["int"])
20 @skipUnlessDarwin
21 def test_int_type_from_block(self):
22 """Test that int-type variables are displayed correctly from a block."""
23 self.build_and_run_expr("int.cpp", ["int"])
25 def test_unsigned_int_type(self):
26 """Test that 'unsigned_int'-type variable expressions are evaluated correctly."""
27 self.build_and_run_expr("unsigned_int.cpp", ["unsigned", "int"])
29 @skipUnlessDarwin
30 def test_unsigned_int_type_from_block(self):
31 """Test that 'unsigned int'-type variables are displayed correctly from a block."""
32 self.build_and_run_expr("unsigned_int.cpp", ["unsigned", "int"], bc=True)