Branch: Tag:

2003-09-15

2003-09-15 20:36:59 by Martin Stjernholm <mast@lysator.liu.se>

Test an (apparent) overoptimization bug in catch.

Rev: src/testsuite.in:1.677

1: - test_true([["$Id: testsuite.in,v 1.676 2003/09/10 09:44:16 grubba Exp $"]]); + test_true([["$Id: testsuite.in,v 1.677 2003/09/15 20:36:59 mast Exp $"]]);      // This triggered a bug only if run sufficiently early.   test_compile_any([[#pike 7.2]])
9753:      // - catch   test_false([[class X { string test(string foo) { catch { return lower_case(foo); }; return foo; }}()->test(0); ]]) + test_true([[catch (1.0 / 0.0)]]) + test_true([[catch {1.0 / 0.0;}]])         // Pike modules