Jens Rieks <[EMAIL PROTECTED]> wrote:
> the following patch adds 4 more tests to t/pmc/sub.t

Thanks for the tests. Applied.

> One of the new tests ('load_bytecode @LOAD second sub - imc') is currently
> failing.

@LOAD or other pragmas are only evaluated on the first statement of a
compilation unit. Branching inmidst some code isn't supported.
It's not likely that this will get changed. I've updated the test
(including a comment) to now read:

  .emit
    .pcc_sub _foo:
    print "error\n"
  .eom
  .emit
    .pcc_sub @LOAD _sub1:
    print "in sub1\n"
    invoke P1
  .eom

leo

Reply via email to