Branch: Tag:

2009-06-24

2009-06-24 19:07:04 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Added test for bug in describe_backtrace() et al.

Rev: src/testsuite.in:1.873

1:   START_MARKER - test_true([["$Id: testsuite.in,v 1.872 2009/06/22 18:56:11 grubba Exp $"]]); + test_true([["$Id: testsuite.in,v 1.873 2009/06/24 19:07:04 grubba Exp $"]]);      // This triggered a bug only if run sufficiently early.   test_compile_any([[#pike 7.2]])
842:    "D", ({ "get_a", "get_b", "get_c", "get_d" }) }))      test_any([[ +  // Test that backtraces with prototypes are rendered correctly by +  // describe_backtrace() et al. These backtraces have caused both +  // "Bad offset" and "Identifier reference index out of range". +  class A { void foo(); } +  class B { int gazonk; inherit A; void bar() { foo(); } } +  return sizeof(describe_backtrace(catch { B()->bar(); })) > 0; + ]], 1) +  + test_any([[    // Test multiple inherit of same symbol,    // where later symbol is protected.    class A { constant foo = 1; };