[Lldb-commits] [lldb] [lldb] Add arithmetic binary subtraction to DIL (PR #184017)

Michael Buch via lldb-commits lldb-commits at lists.llvm.org
Mon Mar 2 01:58:22 PST 2026


================
@@ -87,5 +97,20 @@ def test_arithmetic(self):
 
         # Check references and typedefs
         self.expect_var_path("ref + 1", value="3")
+        self.expect_var_path("ref - 1l", value="1")
         self.expect_var_path("my_ref + 1", value="3")
+        self.expect_var_path("my_ref - 1", value="1")
         self.expect_var_path("ref + my_ref", value="4")
+        self.expect_var_path("ref - my_ref", value="0")
----------------
Michael137 wrote:

Can we add a test for doing `(unsigned)0 - 1` and `UINT_MAX + 1`?

https://github.com/llvm/llvm-project/pull/184017


More information about the lldb-commits mailing list