t_trap_range_arg.mod 175 B

123456789
  1. MODULE TTrapRangeArg;
  2. // A value actual outside the formal subrange must trap at the call.
  3. TYPE I = [0..10];
  4. PROCEDURE P (x: I);
  5. BEGIN
  6. END P;
  7. BEGIN
  8. P(11)
  9. END TTrapRangeArg.