2 Test calling user defined functions using expression evaluation.
3 This test checks that typesystem lookup works correctly for typedefs of
6 Ticket: https://llvm.org/bugs/show_bug.cgi?id=26790
12 from lldbsuite.test.decorators import *
13 from lldbsuite.test.lldbtest import *
14 from lldbsuite.test import lldbutil
17 class TestExprLookupAnonStructTypedef(TestBase):
18 mydir = TestBase.compute_mydir(__file__)
23 self.line = line_number('main.cpp', '// lldb testsuite break')
28 bugnumber="llvm.org/pr27868")
30 """Test typedeffed untagged struct arguments for function call expressions"""
33 self.runCmd("file "+self.getBuildArtifact("a.out"),
34 CURRENT_EXECUTABLE_SET)
35 lldbutil.run_break_set_by_file_and_line(
39 num_expected_locations=-1,
43 self.runCmd("run", RUN_SUCCEEDED)
44 self.expect("expr multiply(&s)", substrs=['$0 = 1'])