Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / lldb / test / API / lang / cpp / chained-calls / TestCppChainedCalls.py
blobfa2c5dca2748892f7b8741379d57a2470db60f9f
1 import lldb
2 from lldbsuite.test.decorators import *
3 from lldbsuite.test.lldbtest import *
4 from lldbsuite.test import lldbutil
7 class TestCppChainedCalls(TestBase):
8 def test_with_run_command(self):
9 self.build()
10 lldbutil.run_to_source_breakpoint(
11 self, "// break here", lldb.SBFileSpec("main.cpp")
14 # Test chained calls
15 self.expect_expr("get(set(true))", result_type="bool", result_value="true")
16 self.expect_expr("get(set(false))", result_type="bool", result_value="false")
17 self.expect_expr("get(t & f)", result_type="bool", result_value="false")
18 self.expect_expr("get(f & t)", result_type="bool", result_value="false")
19 self.expect_expr("get(t & t)", result_type="bool", result_value="true")
20 self.expect_expr("get(f & f)", result_type="bool", result_value="false")
21 self.expect_expr("get(t & f)", result_type="bool", result_value="false")
22 self.expect_expr("get(f) && get(t)", result_type="bool", result_value="false")
23 self.expect_expr("get(f) && get(f)", result_type="bool", result_value="false")
24 self.expect_expr("get(t) && get(t)", result_type="bool", result_value="true")