[Lldb-commits] [lldb] [lldb] Add arithmetic binary addition to DIL (PR #177208)
Michael Buch via lldb-commits
lldb-commits at lists.llvm.org
Mon Feb 16 03:22:49 PST 2026
================
@@ -44,3 +44,36 @@ def test_arithmetic(self):
self.expect_var_path("+bitfield.b", value="2", type="int")
self.expect_var_path("+bitfield.c", value="3", type="unsigned int")
self.expect_var_path("+bitfield.d", value="4", type="uint64_t")
+
+ # Check basic math and resulting types
+ self.expect_var_path("1 + 2", value="3", type="int")
----------------
Michael137 wrote:
We should add some tests for multiple consecutive `+`
And possibly also test the interaction of `+` with a unary minus (I think that already exists in DIL right?)
https://github.com/llvm/llvm-project/pull/177208
More information about the lldb-commits
mailing list