[M3commit] [modula3/cm3] b9c1b9: Add test p032, passing of array parameters.

GitHub noreply at github.com
Tue Nov 14 17:53:47 CET 2017


  Branch: refs/heads/master
  Home:   https://github.com/modula3/cm3
  Commit: b9c1b9c8075ee8fb06f6cbdd7020be3f6136e244
      https://github.com/modula3/cm3/commit/b9c1b9c8075ee8fb06f6cbdd7020be3f6136e244
  Author: Rodney Bates <rodney.m.bates at acm.org>
  Date:   2017-11-14 (Tue, 14 Nov 2017)

  Changed paths:
    M m3-sys/m3tests/src/m3makefile
    A m3-sys/m3tests/src/p0/p032/Main.m3
    A m3-sys/m3tests/src/p0/p032/m3makefile
    A m3-sys/m3tests/src/p0/p032/stderr.build
    A m3-sys/m3tests/src/p0/p032/stderr.pgm
    A m3-sys/m3tests/src/p0/p032/stdout.build
    A m3-sys/m3tests/src/p0/p032/stdout.pgm

  Log Message:
  -----------
  Add test p032, passing of array parameters.

Test passing of array parameters, fixed and open, in all three modes.

For READONLY mode, this is subtle.  According to Modula3, only
nondesignators passed by value in READONLY mode.  (Anything that
is assignable is passed by reference, and anything not assignable
is statically illegal.)  The only array nondesignators are constants
and function results, neither of which is aliasable, so they are
regarded as already being copies and passed by reference at the low
level.




More information about the M3commit mailing list