================
@@ -0,0 +1,60 @@
+import lldb
+from lldbsuite.test.decorators import *
+from lldbsuite.test.lldbtest import *
+from lldbsuite.test import lldbutil
+
+
+class TestCase(TestBase):
+ def test(self):
+ self.build()
+ (_, process, _, _) = lldbutil.run_to_source_breakpoint(
+ self, "Break here: const", lldb.SBFileSpec("main.cpp")
+ )
+
+ self.expect_expr("bar()", result_type="double", result_value="5")
+ self.expect_expr("const_volatile_method()")
+ self.expect_expr("const_method()")
+ self.expect(
+ "expression volatile_method()",
+ error=True,
----------------
adrian-prantl wrote:
why can this not be expect_expr?
https://github.com/llvm/llvm-project/pull/177922
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits