Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / lldb / test / API / lang / c / full_lto_stepping / TestFullLtoStepping.py
blob95c174c5efb33a5bd01e7e5b7222d904b2a83ee9
1 """Test that stepping in object files with multiple compile units works."""
3 import lldb
4 from lldbsuite.test.decorators import *
5 from lldbsuite.test.lldbtest import *
6 import lldbsuite.test.lldbutil as lldbutil
9 class TestFullLtoStepping(TestBase):
10 # The Makefile manually invokes clang.
11 @skipIfAsan
12 @skipIf(compiler=no_match("clang"))
13 @skipIf(compiler="clang", compiler_version=["<", "13.0"])
14 @skipUnlessDarwin
15 def test(self):
16 self.build()
17 _, _, thread, _ = lldbutil.run_to_name_breakpoint(self, "main")
19 name = thread.frames[0].GetFunctionName()
20 # Check that we start out in main.
21 self.assertEqual(name, "main")
22 thread.StepInto()
23 name = thread.frames[0].GetFunctionName()
24 # Check that we stepped into f.
25 self.assertEqual(name, "f")