mirror of
https://github.com/catseye/SixtyPical.git
synced 2024-11-29 03:51:35 +00:00
26 lines
375 B
Plaintext
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
|
|
}
|