Author: Ilia Kuklin Date: 2026-03-02T15:35:44+05:00 New Revision: e3b01e132908836aebc142d5e92d96314fd44951
URL: https://github.com/llvm/llvm-project/commit/e3b01e132908836aebc142d5e92d96314fd44951 DIFF: https://github.com/llvm/llvm-project/commit/e3b01e132908836aebc142d5e92d96314fd44951.diff LOG: [lldb] Fix wchar addition tests in DIL (#184082) This patch fixes tests on systems where `wchar`'s underlying type is `unsigned long`, or `long` and `int` types have the same width, so `unsigned int` gets promoted to `unsigned long` during binary addition. These tests check that `wchar` types get promoted to regular integer types at all. Added: Modified: lldb/test/API/commands/frame/var-dil/expr/Arithmetic/TestFrameVarDILArithmetic.py Removed: ################################################################################ diff --git a/lldb/test/API/commands/frame/var-dil/expr/Arithmetic/TestFrameVarDILArithmetic.py b/lldb/test/API/commands/frame/var-dil/expr/Arithmetic/TestFrameVarDILArithmetic.py index 5b68c493ba3a5..bfa040b8cfb7b 100644 --- a/lldb/test/API/commands/frame/var-dil/expr/Arithmetic/TestFrameVarDILArithmetic.py +++ b/lldb/test/API/commands/frame/var-dil/expr/Arithmetic/TestFrameVarDILArithmetic.py @@ -48,9 +48,9 @@ def test_arithmetic(self): # Check basic math and resulting types self.expect_var_path("1 + 2", value="3", type="int") self.expect_var_path("1 + true", value="2", type="int") - self.expect_var_path("1L + wchar", value="2", type="long") - self.expect_var_path("1L + char16", value="3", type="long") - self.expect_var_path("1LL + char32", value="4", type="long long") + self.expect_var_path("1UL + wchar", value="2", type="unsigned long") + self.expect_var_path("1UL + char16", value="3", type="unsigned long") + self.expect_var_path("1ULL + char32", value="4", type="unsigned long long") self.expect_var_path("1UL + 1L", value="2", type="unsigned long") self.expect_var_path("s + x", value="12", type="int") self.expect_var_path("s + l", value="15", type="long") _______________________________________________ lldb-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits
