| Revision: | 1.1 |
| Committed: | Tue Jul 3 02:53:34 2001 UTC (25 years, 3 months ago) by root |
| Content type: | application/x-troff |
| Branch: | MAIN |
| Log Message: | *** empty log message *** |
| # | User | Rev | Content |
|---|---|---|---|
| 1 | root | 1.1 | BEGIN { $| = 1; print "1..6\n"; } |
| 2 | END {print "not ok 1\n" unless $loaded;} | ||
| 3 | use Coro; | ||
| 4 | $loaded = 1; | ||
| 5 | print "ok 1\n"; | ||
| 6 | |||
| 7 | my $main = $Coro::main; | ||
| 8 | my $proc = new Coro \&a; | ||
| 9 | |||
| 10 | sub a { | ||
| 11 | print "ok 3\n"; | ||
| 12 | $main->resume; | ||
| 13 | print "ok 5\n"; | ||
| 14 | $main; | ||
| 15 | } | ||
| 16 | |||
| 17 | print "ok 2\n"; | ||
| 18 | $proc->resume; | ||
| 19 | print "ok 4\n"; | ||
| 20 | $proc->resume; | ||
| 21 | print "ok 6\n"; | ||
| 22 |