[PDD] Add docs for the Parrot_PMC_push_* and Parrot_PMC_pop_* functions
[parrot.git] / examples / subs / no_retval.pir
blob7f40368a1b660bb51da0c19bf6f9713a728283de
1 # Copyright (C) 2001-2008, Parrot Foundation.
2 # $Id$
4 =head1 NAME
6 examples/subs/no_retval.pir - Subroutine example
8 =head1 SYNOPSIS
10     % ./parrot examples/subs/no_retval.pir
12 =head1 DESCRIPTION
14 Call a sub with no return values.
16 =head1 SEE ALSO
18 F<docs/imcc/syntax.pod>
19 F<docs/imcc/calling_conventions.pod>
21 =cut
23 .sub example :main
24   foo(7, 8, "nine")
25 .end
27 .sub foo
28   .param int i
29   .param int j
30   .param string s
32   print i
33   print " "
34   print j
35   print " "
36   print s
37   print "\n"
38 .end
40 # Local Variables:
41 #   mode: pir
42 #   fill-column: 100
43 # End:
44 # vim: expandtab shiftwidth=4 ft=pir: