mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
gh-109719: Fix missing jump target labels when compiler reorders cold/warm blocks (#109734)
This commit is contained in:
parent
73ccfa28c5
commit
7c55399172
3 changed files with 17 additions and 0 deletions
|
@ -1261,6 +1261,17 @@ class TestSpecifics(unittest.TestCase):
|
|||
except:
|
||||
pass
|
||||
|
||||
def test_cold_block_moved_to_end(self):
|
||||
# See gh-109719
|
||||
def f():
|
||||
while name:
|
||||
try:
|
||||
break
|
||||
except:
|
||||
pass
|
||||
else:
|
||||
1 if 1 else 1
|
||||
|
||||
|
||||
@requires_debug_ranges()
|
||||
class TestSourcePositions(unittest.TestCase):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue