1
0
mirror of https://github.com/catseye/SixtyPical.git synced 2024-11-29 03:51:35 +00:00
SixtyPical/eg/rudiments/errorful/vector.60p
2019-10-22 16:56:19 +01:00

26 lines
375 B
Plaintext

// should fail analysis with a ConstantConstraintError
// because it cannot copy the address of `foo` into `vec`
// because it has incompatible constraints.
vector routine
inputs y
outputs y
trashes z, n
vec
define foo routine
inputs x
outputs x
trashes z, n
{
inc x
}
define main routine
inputs foo
outputs vec
trashes a, z, n
{
copy foo, vec
}