From fd4e25df42fd0b3d3220a03032aa63cbb95a97f0 Mon Sep 17 00:00:00 2001 From: Charlotte Date: Thu, 29 Jun 2023 11:13:23 +1000 Subject: [PATCH] test_sim: failing test case. --- tests/test_sim.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/tests/test_sim.py b/tests/test_sim.py index 0cc8f50..b06c0e5 100644 --- a/tests/test_sim.py +++ b/tests/test_sim.py @@ -882,6 +882,19 @@ class SimulatorIntegrationTestCase(FHDLTestCase): Simulator(m).run() self.assertEqual(warns, []) + def test_large_expr_parser_overflow(self): + m = Module() + a = Signal() + + op = a + for _ in range(50): + op = (op ^ 1) + + op = op & op + + m.d.comb += a.eq(op) + Simulator(m) + class SimulatorRegressionTestCase(FHDLTestCase): def test_bug_325(self):