Seems like it isn't called at all, your copy constructor with inout. Could be a bug.My assumption is that default copy constructors are generated alongside inout one, and then picked up for your initialization instead of inout one.Best regards, Alexandru.
When I run test() it outputs the string "copy", so I am not sure why you're saying this.